The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to find Definition/Script for ResourceProfile()

LFleming
Tera Contributor

Can you tell me how to find Definition/Script or ResourceProfile(). 

 

ResourceProfile() is used as an advanced reference qualifier used by the resource field in the form assigning resources using the ResourceAssignment tab at the bottom of the demand form.

 

The reference qualifier is entered as a property of resource field as:
javascript: new ResourceProfile.GetUserResourceConditionForGivenAttributes(current);

 

image.png

 

The notes I have found indicate this is a server-side script.  I don't know how to find the name of the script file.  I tried tracing the error with script, but the error occurs only when impersonating the Demand Manager role, which does not have access the script tracer.

 

1 REPLY 1

Rafael Batistot
Kilo Patron

Hi @LFleming 

 

That’s correct, it’s a server-side.

Your reference qualifier call a script include: 

ResourceProfile —> script include name 
GetUserResourceConditionForGivenAttributes -> function that call (case have more than one) 

 

Kindly show me the code in the script include? 

 

  1. Navigate to:
    System Definition → Script Includes
  2. In the search bar, type:
    ResourceProfile
  3. Open the record. You’ll see the server-side code inside the Script field.

Important: The user you’re impersonating must have admin or at least read access to the Script Include to view it. If not, you’ll need an admin account to inspect it.