Introduction:
Recently we had a business requirement to maintain Opportunity Status change history. So, to achieve this, we created a custom entity and developed the OOB workflow to create a custom entity record and Send an email to the owner.
First, we created a custom entity ‘Opportunity Status History’ with the below-mentioned fields;
1. Opportunity Lookup (to maintain 1:N relationship between Opportunity and Opportunity Status History)
2. Approver (User Lookup)
3. Approved On (Date Time Field)
4. Status (Option Set)
The Status field is an Option Set. We created two fields for the Opportunity and Opportunity Status History entity with the same Options respectively as shown in the below screenshot;
Status Field on Opportunity Entity:
Status Field on Opportunity Status History:
We developed an OOB workflow that will create an ‘Opportunity Status History’ record. However, we were facing an issue while setting the value to the Status Option set field using OOB workflow attributes. The attribute drop-down is null even if both the fields have the same option set values as seen in the screenshot below;
To resolve this issue we created a Global Option Set field for the Status field in Dynamics CRM as seen in the screenshot below;
Then we deleted the existing status fields from the Opportunity and Opportunity Status History entity and created new fields using the Global Option set for the both entity as shown in the screenshot below;
Now we were able to map the Status field on Opportunity Status History entity using OOB workflow attribute
We can only map the Option Set value in OOB workflow if it is Global Option Set and not for the Option Set fields having same values.
Hello, I have similar requirement of copying case details to custom entity case tracker. Even after creating global options set,am not able to map with options set. Please suggest on priority
As mentioned in the blog, please create new option set fields using the Global Option set for both entity, then you will be able to map the option set field on entity using OOB workflow.
Thanks!
Hello,
I have requirement to create case tracker entity and update values (some of them) whenever case record is created or updated. Can both create and update scenarios be handled in workflow ?
Case and case tracker has 1:1 mapping
Regards
Ashwini
Yes, you can handle both create and update scenarios in Workflow.
As per your requirement, Case and Case tracker has 1:1 mapping so you will have lookup field of Case entity on Case Tracker entity and vice versa.
To achieve this, follow the given steps:
1. Create OOB Workflow on Case entity. Select “Record is created” and “Record fields change” from ‘Start when’ option. Add step to update Case Tracker entity as shown below:
2. Map the fields from Case to Case Tracker as shown in below screenshot:
Hope this helps.
Thanks!