how can we automate the connection alias setup in REST Step of flow designer for different envirnmt.

Abhi53
Tera Contributor

how can we automate the connection/credential alias setup in REST Step of flow designer for different environments so that it will auto update as per the instance i.e. dev, test & prod .it will be useful in case of code migration from one instance to another so that the connection alias & base url in REST step will auto update as pr the instance .

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Abhi53 

connection/credential alias are not captured in update set.

You will have to migrate them via export/import XML

Since the sysIds will be the same the flow REST Step will automatically get associated with the connection record.

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

VikMach
Mega Sage

@Abhi53, you can use toggle script button and update the base URL as snip below.

VikMach_0-1759223970736.png


Hope this helps.
Let me know if that worked.

Regards,
Vikas K