- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2020 09:52 AM
Hi Ashutosh,
We had a previous issue with fields not setting as we expected, and following a Hi ticket they advised us to set the 'two step' property to true advising that when the property is set to false then the 'Restrict fields from Standard Change' gets called, but when set to true the rule is not called. We have 'Two step' property set to 'true'.
Is the above not the case when calling the template from a script?
What would be the best way around this?
Thanks
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 01:36 AM
Hi,
I've set the business rule 'Restrict fields from Standard Change' to false and then ran my script and it then creates the standard change without setting any of the fields.
I've set it back to true so it still populates all the read only fields, but I need to figure out how to make the 3 non read only fields set with the data from the template?
Thanks
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2020 04:50 PM
I reached out to HI in the end with the issue being with the business rule 'Apply standard change template'. This is a display business rule, so does not run when trying to set the template from a script (manually selecting the template takes you to the record to submit).
I had to replicate the logic in the business rule within my script
Hope this helps
Thanks
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 02:54 AM
Hi
I am facing the same issue, could you please share the script which worked for you?
Thanks,
Prajakta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2020 03:31 AM
Hi Prajakta,
I have changed jobs since this so no longer have access to the script. From memory I think it was the business rule 'Apply standard change template' on the change_request table that was the issue, so I had to change the script to add the template in the same way as the business rule works.
Apologies couldn't offer more help from memory.
Thanks
Sam