Setting up HCM Absence Request to PSA Assignment and Timecard Records
PSA can automatically create assignments and timecards when it receives an approved absence request from HCM. To achieve this, HCM publishes approved absence requests in Foundations and PSA subscribes to that information using the mappings provided with Foundations.
Setting up Project IDs for Absence Assignment
To automatically create assignments from an absence request, PSA requires a Project ID. You can do one of the following:
- Specify the project ID to use in the Absence Request Project custom field of the Foundations PSA Messaging Settings custom setting. See Absence Request Project.
- Create a custom mapping containing a data transformation table that maps to a project. For instance, you might want to do this if your organization needs to use a different project assignment to record absence in different regions.
- custom HCM absence request filter mapping field and apply a data transformation table to it.
In this example, the organization has projects for the USA and Canada regions and requires a custom mapping for absence requests in those regions.
- Click the Data Transformation Tables tab in the Foundations Administration app.
- Click New.
- Enter a name for the data transformation table. For example, absenceProjectTransform.
- Enter a meaningful description for the data transformation table.
- Create the data transformations for the USA and Canada:
- Click New Data Transformation in the Data Transformations related list.
- In the Source Value field enter the name of the region you are creating the data transformation for. For instance, USA.
- In the Target Value field enter project ID of the project used for absences in the previous step.
- Click Save.
- Click Save.
- In the Foundations Administration app, click the Message Types tab.
- Click the AbsenceRequest.Update message type.
- Click HCM/AbsenceRequest.Update in the Publications related list.
- Click at the worker level.
- Select Relationship.
- In the Key field enter RegionId.
- Select Region from the drop-down list.
- Click Update.
- Click at the regionId level that you created.
- Select Field.
- Select Region from the Field drop-down list.
- In the Key field enter Region.
- Click Update.
- Click Save.
- In the Foundations Administration app, click the Message Types tab.
- Click the AbsenceRequest.Update message type.
- Click PSA/AbsenceRequest.Update in the Subscriptions related list.
- Click Add.
- Select Project from the Target field drop-down list.
- Select worker - regionId - Region from the Message Key drop-down list.
- Select the absenceProjectTransform data transformation table you created earlier from the Data Transformation Table drop-down list.
- Click Update Mapping.
- Click Save.
Creating a Custom HCM Absence Request Filter
You can create custom absence request filters so that only absence requests of a particular type are published:
- Create a new formula field on the Absence Request object:
- Select the formula type "Checkbox".
- Name the field "Send to PSA".
- Enter the formula:
AND(VanaHCM__Absence_Type_Request__r.Name='Vacation', OR(Text(VanaHCM__Requested_By__r.VanaHCM__Worker_Type_Worker__c) = 'Employee', Text(VanaHCM__Requested_By__r.VanaHCM__Worker_Type_Worker__c) = 'Contractor'))
- Click the Foundations Setup tab in the Foundations Administration app.
- Click the Publications and Subscriptions tab.
- Click Update under the AbsenceRequest message type.
- Click the Publication Name HCM/AbsenceRequest.Update in the Publications related list.
- Click Description to expand the Description section.
- Add a new field to the message:
- Click at the Body level.
- Select Field.
- Select Send to PSA from the Field drop-down list.
- Enter the key "importToPSA".
- Click Update.
- Click Save.
- Enter "importToPSA" in the Absence Filter Field Key custom field of the Foundations PSA Messaging Settings custom setting.
- Enter "true" in the Absence Filter Values custom field of the Foundations PSA Messaging Settings custom setting.
For information, see Foundations PSA Messaging Settings.
Configuring the HCM Sending Method
You can control the number of messages that HCM sends using the Deliver Now method. For more information, see FDN HCM Messaging Settings.
Adding Nodes
- On the Registered Products tab, click the name of the product containing the publication you want to customize.
- Click the name of the publication you want to edit in the Publications related list.
- Click Description to expand the Description section.
- Click at the level to which you want to add a node.
- In the Add Node popup:
- Select the type Static.
- Enter a unique key for the node.
- Enter a meaningful description for the node.
- Enter the data to be stored in the node.
- Click Update or Update and Add New depending on whether you want to add another node at the same level.
- Click Save.
- On the Registered Products tab, click the name of the product containing the publication you want to customize.
- Click the name of the publication you want to edit in the Publications related list.
- Click Description to expand the Description section.
- Click at the level to which you want to add a node.
- In the Add Node popup:
- Select the type Field.
- Select the field that you want.
- If required, enter a unique key for the node.
- Click Update or Update and Add New depending on whether you want to add another node at the same level.
- Click Save at the top of the Description section.
- On the Registered Products tab, click the name of the product containing the publication you want to customize.
- Click the name of the publication you want to edit in the Publications related list.
- Click Description to expand the Description section.
- Click at the level to which you want to add a node.
- In the Add Node popup:
- Select the type Field.
- Select the lookup field that you want to obtain information from.
- If required, enter a unique key for the node.
- Click Update or Update and Add New depending on whether you want to add another node at the same level.
- Click Save at the top the Description section.
- On the Registered Products tab, click the name of the product containing the publication you want to customize.
- Click the name of the publication you want to edit in the Publications related list.
- Click Description to expand the Description section.
- If the node you want to obtain a value from is not listed, click at the level to which you want to add the node.
- Select the type Relationship.
- Select a lookup from the Object drop-down list.
- Enter a unique key for the node.
- Click Update.
- Add the information in the related object that you want to include in the publication:
- Click at the level of the node that you created in the previous steps.
- Select the type of node you want then complete the fields for that node type.
- If required, enter a unique key for the node.
- Click Update or Update and Add New depending on whether you want to add another node at the same level.
- Repeat these steps until you have added all the nodes that you want.
- Click Save at the top the Description section.
- On the Registered Products tab, click the name of the product containing the publication you want to customize.
- Click the name of the publication you want to edit in the Publications related list.
- Click at the level to which you want to add the node.
- Select the type Relationship.
- Select a Related List from the Object drop-down list.
- If required, enter a unique key for the node.
- Click Update.
- Add the information in the related object that you want to include in the publication:
- Click at the level of the list that you created in the previous steps.
- Select the type of node you want then complete the fields for that node type.
- If required, enter a unique key for the node.
- Click Update or Update and Add New depending on whether you want to add another node at the same level.
- Repeat these steps until you have added all the nodes that you want.
- Click Save at the top of the Description section.