We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to set default value in in reference variable in service catalog ?

shivam kayarkar
Tera Contributor

I have one variable in service catalog type is Reference.
I want to set default value (unique value not from record).
Default tab - not working.
So, any other way to set default value it.

9 REPLIES 9

Sandeep Rajput
Tera Patron

@shivam kayarkar put the sys_id of the record in default value field.

Hi Sandeep,
Thank for suggestion.
But my value is Unique (Random) value.
It is not record so that don't have any sys_id.

@shivam kayarkar You can't set any random value as default value on a reference field. It has to be a sys_id from the reference table. Otherwise the default value will not be set on the reference field.

ok.

If I set it from table, then the variable turns mandatory to non-mandatory.
But I want variable mandatory only, unless another record not selected. 
is it possible to do.