tmf674-geographic-site-v4-outbound-api
Extensibility
Add Customized Details to the TMF Payload (POST and PATCH)
Update the Salesforce query to include more fields while reading the data from the Salesforce object:salesforce.namespace = {namespace prefix for the Salesforce object}salesforce.soql.premises = {standard SOQL to fetch premise details from Salesforce}
Update DataWeave to include additional fields in the TMF payload. You can update these DataWeave files:
- mule-app/src/main/resources/dwl/post-soql-to-tmf-payload.dwl
- mule-app/src/main/resources/dwl/post-soql-to-place-mapping-var.dwl
- mule-app/src/main/resources/dwl/post-soql-to-related-party-mapping-var.dwl
- mule-app/src/main/resources/dwl/post-soql-to-site-relationship-mapping-var.dwl
- After you are finished making the updates, redeploy the JAR file.
Update the Authentication Type for the External System
As a standard, MuleSoft Direct apps support OAuth authentication for the external system. To update this, you must update the connector in the application. This applies to all methods.
Comment out the flow reference call http-fetch-oauth-token-common-sub-flow in below files.
For POST - impl-post-geographic-site-flow.xml
For PATCH - impl-patch-geographic-site-flow.xml
For GET - impl-get-geographic-site-flow.xml
Update the DataWeave (targetApiParams, TMF payload dwl) to include the Basic Auth header in below files.
For POST - dwl/post-geographic-site-target-api-params-var.dwl
For PATCH - dwl/patch-geographic-site-target-api-params-var.dwl
For GET - dwl/get-geographic-site-target-api-params-var.dwl
From → "Authorization": "Bearer " ++ vars.tokenPayload.access_token
To → "Authorization": "Basic " ++ “Base64 encoded (username):Base64 encoded (password)”
After you are finished making the updates, redeploy the JAR file.