tmf674-geographic-site-v4-outbound-api

Extensibility

Add Customized Details to the TMF Payload (POST and PATCH)

  1. 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}

  2. 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
  3. 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.

  1. Comment out the flow reference call http-fetch-oauth-token-common-sub-flow in below files.

    1. For POST - impl-post-geographic-site-flow.xml

    2. For PATCH - impl-patch-geographic-site-flow.xml

    3. For GET - impl-get-geographic-site-flow.xml

  2. Update the DataWeave (targetApiParams, TMF payload dwl) to include the Basic Auth header in below files.

    1. For POST - dwl/post-geographic-site-target-api-params-var.dwl

    2. For PATCH - dwl/patch-geographic-site-target-api-params-var.dwl

    3. 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.

TypeApplication
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onJun 12, 2025
Asset overview
Industries CloudCommunications
Custom fields

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.0