Saving value of sys_id and name

GwynethPhoS
Tera Contributor

I have a catalog item that requires the reference of Supplier name in the company table, but upon submitting the request in catalog item. the custom supplier document table that i created is not reflecting any data. what script should I create to prefill once the supplier's name is inserted and it should be reflected in the supplier document table. 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@GwynethPhoS 

please share some screenshots of your form, variable config etc

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

adityahubli
Tera Guru

Hello @GwynethPhoS ,

 

When you submit catalog item with supplier name variable then you want to create new record in in your customer supplier table ? Is it your question. If yes then you can use flow designer for this .

steps 

1)create flow with trigger type Application=>Service Catalog

2)Get catalog variable from you catalog

3)create record 

tablename:supplier document table

set field as you required

4)publish this flow and attach this flow in your catalog item process engine 

adityahubli_1-1770352807676.png

 

 

 

 

adityahubli_0-1770352636017.png

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya