Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.

Is it possible to get instance details similar to $(login) within schema?

Avatar

Level 2

Hi,

 

I would like to know the possibility of getting instance details within a schema similar to $(login). Idea is to add a default value in an attribute automatically based on instance value on inserting new records in a schema.I am keen to get a solution other than functions or storeprocedures that can be used within a schema

 

Thanks

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

Hi @SankarRa1

 

Until what I know is that is not possible to access the instance name directly inside a schema field. Schema default values don't have access to context variables like $(login) or values of the instance. If you need to populate a field related to the instance, you will have to set it in a workflow, JavaScript, or a input form where Application.instanceName. 

 

I share with you some useful documentation that can help you:

InstanceNameAPI 

Attributes 

Schema structure 

 

If you need something more just let me know.

 

Best, 

Celia