dear all
I need to stop proceeding to the next stage when Cities (subgrid) is empty AND current stage is “GATHERING DATA”.
How I can do this?
please check the image below :
*This post is locked for comments
dear all
I need to stop proceeding to the next stage when Cities (subgrid) is empty AND current stage is “GATHERING DATA”.
How I can do this?
please check the image below :
*This post is locked for comments
thanks a lot.
really appreciate.
Hi,
Create a plugin to do that.
How to retrieve records using Fetchxml
https://msdn.microsoft.com/en-us/library/gg328117.aspx
How to retrieve records using Query Expression
https://msdn.microsoft.com/en-us/library/gg328300.aspx
if the return result is 0
throw new InvalidPluginExecutionException("right msg");
How to Create Plugin
https://www.youtube.com/watch?v=edOwzUJ30kk
If you do not have any experiences on doing plugin. You also can use below method
Create a rollup field
Create a workflow
- if rollup field is 0 , throw error.
How to throw error in CRM using real time workflow.
survivingcrm.com/.../using-real-time-workflows-to-show-error-messages
can you help with some scripts?
thanks,
Better to use plugin to validate your requirement. Throw exception if validation failed.
Can you help with some scripts if possible as i dont have such experience.
thanks,
Hi Ahmad,
first of all you need to check that Cities subgrid has record in it using fetch xml query or sdk.rest and along with it also check the stage id or name, and if your condition matches disable the next stage button on business process flow.
Hope this helps!!!
Best Regards,
Shahbaaz
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156