Service Desk Practitioners Forum
Showing results for 
Search instead for 
Did you mean: 

SD Event and unique source ID

Occasional Contributor

SD Event and unique source ID

I am using SD Event to create new service calls. I'm using modus=insert and using Source ID as my unique key, which I defined in import mapping. I am able to create a new service call if I specify the source ID as part of SD Event, but I'm trying to figure out how to do it without passing it in, since I won't know what the next source ID will be when SD Event is triggered. I'm wondering if there's a way for SD Event to just use the next available source ID automatically.

Any tips would be very much appreciate. Thank you.
Honored Contributor

Re: SD Event and unique source ID

Hi John,

To guarantee a unique source id I always use the following variable;

This will always be unique, hope it helps.

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
//Add this to "OnDomLoad" event