Create Demand on Idea acceptance. BR is working fine except for one field not populating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 07:06 AM
Hi,
I have a BR in place that creates demand when Idea is being accepted. That code is not written by me but someone who was their earlier.
I have added two lines of code. That should populate Portfolio on Idea form to Portfolio on demand form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 02:59 PM
Hi @Vaishnavi35 ,
First off, I'd highly recommend utilising now learning and completing the scripting in ServiceNow course.
1. I've given you the example in my previous post, here's another one -
demand.setValue("portfolio", current.getValue('u_global_process_shared_services_area'));
2. Aside from the fact you're creating a 1:2 relationship between a project and a portfolio (which I would thoroughly test the business case for) - Can you add some debug to your code and see what value the script is trying to put into the custom portfolio reference field? You can then try putting this value in yourself and see what happens when saving the form.
Thanks,
Chris