We want to automatically grant office users access (read and write) to their own dataverse row. So the office user should be assigned to own the row of the table, which corresponds to their name. How is the code for the unbound action, grantaccess?
The picture shows that we have one entry which is the full name on the left and we want to automatically assign the user that corresponds to this full name.
Solved! Go to Solution.
Hi @mariaschm :
Do you want to replace Ower in the table with the value in the FullName field? Something like:
to
If so,I've made a test for your reference:
1\Create a canvas and add Users and Your Data table as datasource:
2\Add a button and set it's OnSelect property to:
ClearCollect(TheSource,Homes.Home); /*Homes is my custom table*/ /*Home is the Guid column*/
ForAll(TheSource,
Patch(
Homes,
LookUp(Homes,Home = TheSource[@Home]),
{Owner:LookUp(Users,'Full Name' = LookUp(Homes,Home = TheSource[@Home]).Name)}
))
Best Regards,
Bof
Hi @mariaschm :
Do you want to replace Ower in the table with the value in the FullName field? Something like:
to
If so,I've made a test for your reference:
1\Create a canvas and add Users and Your Data table as datasource:
2\Add a button and set it's OnSelect property to:
ClearCollect(TheSource,Homes.Home); /*Homes is my custom table*/ /*Home is the Guid column*/
ForAll(TheSource,
Patch(
Homes,
LookUp(Homes,Home = TheSource[@Home]),
{Owner:LookUp(Users,'Full Name' = LookUp(Homes,Home = TheSource[@Home]).Name)}
))
Best Regards,
Bof
Hi @v-bofeng-msft,
thank you for your answer. That is exactly what i mean, but I do not want a button On Select property to do it, but automatically within a flow. Any suggestions?