How to populate the parent and child accounts from contact table to record producer form

mania
Tera Contributor

Hi,

 

Based on logged in user  need to populate the parent accounts and child accounts from contacts table to " Account" field (type list collecter) in record producer form

Can anyone please help on this, It will be useful.

 

Thanks!

7 REPLIES 7

@mania 

simply enhance the logic and use advanced ref qualifier and ensure script include returns sysids

javascript:'sys_idIN' + new ScriptIncludeName().functionName();

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@mania 

you can use default value in list collector and use recursion and get the logged in users account

this link has solution for getting reportees for user, enhance it for accounts

Recursive function returns undefined 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@mania 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader