tmf675-geographic-location-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 this DataWeave file to include additional fields in the TMF payload: mule-app/src/main/resources/dwl/post-soql-to-point-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-location-flow.xml
- For PATCH - impl-patch-geographic-location-flow.xml
- For GET - impl-get-geographic-location-flow.xml
- For DELETE - impl-delete-geographic-location-flow.xml
- Update the DataWeave (targetApiParams, TMF payload dwl) to include the Basic Auth header in below files.
- For POST - dwl/post-geographic-location-target-api-params-var.dwl
- For PATCH - dwl/patch-geographic-location-target-api-params-var.dwl
- For GET - dwl/get-geographic-location-target-api-params-var.dwl
- For DELETE - dwl/delete-geographic-location-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.