Announcements
Hello Team,
Let me know how can I update "Policy Update Date" field for all CRM users based on some trigger.I have a confusion on what trigger to use so that all users "Policy Update Date" field will update.Please provide your quick responses.
Thanks,
Vaibhav
Hi Vaibhav,
Can you tell me what app are you using? And where is the Policy Update Date field? User entity or other?
Can you provide screenshot about it if possible?
Regards,
Leah Ju
Am using Power Apps portal where in profile page i have added 2 fields:
1) Policy Date 2) accept Policy checkbox. both fields I have created in Contacts.
Also i have created Custom Entity called User Setting where created 1 field = "New Policy Date"
Now am trying to write a plugin code.
When we update User Setting entity "New Policy Date" field then will fetch all contacts and will assign all CRM contact Policy Date = "New Policy Date" and "accept Policy" checkbox to false.
So that once date update user must have to go to Portal Profile page and accept Policy checkbox.
Please guide me how to write plugin here on update on User Setting entity.
You can use following link to know how to use plugin to update records:
Plugin - Part 6 | Demo of Post Operation in Plugin | Update Message | Use Image | Dynamics CRM - YouTube
If you don't necessarily want to use a plugin to update the fields, you might want to try using power automate to create a flow to achieve it, which is much easier and faster than a plugin.
Here are steps:
1.Go Power Automate(https://us.flow.microsoft.com/en-us/ ) to create an automated flow.
2.Set trigger.
3.Add ‘List records’ actions to retrieve all contacts.
3.Add 'Update a record' action to update fields.
The following is overview of the flow('Apply to each' action will be added automatically after adding 'update a record' action).
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
@Leah Ju thanks for your help. I will proceed with Power Automate functionality. Hope it will resolve without any issue.
Hi Partner,
Please click Yes under "Did this answer your question?" to close this thread if the answer is helpful.
Thanks.
Thanks Leah Ju it was great help.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Muhammad Shahzad Sh... 69 Most Valuable Professional
Daniyal Khaleel 25 Most Valuable Professional
Ayesha Wajahat 16