cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pmwyatt8
Regular Visitor

Get rows from Accounts table and using result in Compose

I'm hoping to find a solution to this issue as I'm sure it must be common.

I am using the Accounts table in Dataverse and have a couple hundred records filled out. 

My PowerAutomate Flow will List the Rows in the Accounts table and uses a filter Query to select only the record that matches the Account Name. Which results in only 1 record being pulled in.

pmwyatt8_1-1719702929292.png

 

I then use a Compose action to use this Record in HTML code. I am pulling in the Address of the Account selected. If all the Address fields are filled out and have data for the Company selected, the Flow runs successfully and the output is created. If the Company record has been saved and does not have the Postal Code filled in (for example), the List Rows action does not include the Postal Code column because there is no data in it.

pmwyatt8_4-1719703264334.png

 

 

So the Flow will fail at the Compose Action because it can't find the column 'address1_postalcode'. Again, when the Company record has the Postal code filled in, the flow works just fine.

I thought I would use Coalesce in the Compose Action, but it doesn't work to even detect a NULL because since there is no data in the Postalcode column, the Get Rows action didn't include that column. At the Compose step, gives the same error that the Column doesn't exist.

Any suggestions would be appreciated.

pmwyatt8_0-1719702875884.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@pmwyatt8 

 

Thank you for verifying.. 

 

Change your code to do this (and apologies I should have said so right away but forgot to look at your body value)

 

in your HTML you can use Coalesce but there is a difference in whether there is a value and whether the column is there at all

 

Change you code to look like this.

Yours 

FLMike_0-1719796728903.png

 

Change it to this

['value'][0]?['address1_postalcode']

 

you technically can and should put a ? between any properties because if its not there, you shouldn't error out, you should be able to use Coalesce now properly

 

and you may not even get the error.

 

Try it this way (of course change them all) and of course if [0] is missing then you would need

?[0]?['address1_postalcode']

 


If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

Cheers

Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey

 

View solution in original post

4 REPLIES 4
FLMike
Multi Super User
Multi Super User

Hi @pmwyatt8 

 

Unless you are limiting the Columns, you will get them all back, empty or not. So not sure that's the issue.

 

Can you show a flow run please, and click the raw output of the List Rows, where it doesnt have the field in it at all?


If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

Cheers

Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey

 

Hi FLMike,

I did not limit columns. Here is the Raw output from the Get Rows

________________

{
    "statusCode": 200,
    "headers": {
        "Cache-Control": "no-cache",
        "Vary": "Accept-Encoding",
        "Set-Cookie": "ARRAffinity=659b47fe69391b93c57b60043286d4ea36dea61b01ed40eff647002271b4b76c15134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DC98908F6F3F551075409532; path=/; secure; HttpOnly,ReqClientId=16eff2c7-bfb3-4895-8f4d-3f8d8c4ebd19; expires=Fri, 29-Jun-2074 22:39:42 GMT; path=/; secure; HttpOnly,ARRAffinity=659b47fe69391b93c57b60043286d4ea36dea61b01ed40eff647002271b4b76c15134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DC98908F6F3F551075409532; path=/; secure; HttpOnly",
        "x-ms-service-request-id": "f8e3fa6e-e626-4a76-82e4-c11692351555",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "REQ_ID": "f8e3fa6e-e626-4a76-82e4-c11692351555",
        "CRM.ServiceId": "CRMAppPool",
        "AuthActivityId": "43c664b1-ff64-495d-a78e-f8051ee221aa",
        "x-ms-dop-hint": "4",
        "x-ms-ratelimit-time-remaining-xrm-requests": "1,200.00",
        "x-ms-ratelimit-burst-remaining-xrm-requests": "7999",
        "OData-Version": "4.0",
        "Preference-Applied": "odata.include-annotations=\"*\"",
        "X-Source": "17314419240125132190941551574325193231691442252021471796668665217819741170511007137,151253892395317710912462318544921054013110723315846901862511471021661011616312433234",
        "Public": "OPTIONS,GET,HEAD,POST",
        "Date": "Sat, 29 Jun 2024 22:39:43 GMT",
        "Allow": "OPTIONS,GET,HEAD,POST",
        "Content-Type": "application/json; odata.metadata=full",
        "Content-Length": "33128",
        "Expires": "-1"
    },
    "body": {
        "#Microsoft.Dynamics.CRM.CreateMultiple": {
            "title": "CreateMultiple",
        },
        "#Microsoft.Dynamics.CRM.DeleteMultiple": {
            "title": "DeleteMultiple",
        },
        "#Microsoft.Dynamics.CRM.UpdateMultiple": {
            "title": "UpdateMultiple",
        },
        "#Microsoft.Dynamics.CRM.UpsertMultiple": {
            "title": "UpsertMultiple",
        },
        "@Microsoft.Dynamics.CRM.totalrecordcount": -1,
        "@Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded": false,
        "@Microsoft.Dynamics.CRM.globalmetadataversion": "3246981",
        "value": [
            {
                "@odata.type": "#Microsoft.Dynamics.CRM.account",
                "@odata.etag": "W/\"3218858\"",
                "@odata.editLink": "accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)",
                "territorycode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "territorycode": 1,
                "address2_freighttermscode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "address2_freighttermscode": 1,
                "address2_shippingmethodcode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "address2_shippingmethodcode": 1,
                "accountid@odata.type": "#Guid",
                "accountid": "4bd0aac3-5f32-ef11-8e4e-002248b294e6",
                "followemail@OData.Community.Display.V1.FormattedValue": "Allow",
                "followemail": true,
                "donotbulkemail@OData.Community.Display.V1.FormattedValue": "Allow",
                "donotbulkemail": false,
                "donotsendmm@OData.Community.Display.V1.FormattedValue": "Send",
                "donotsendmm": false,
                "createdon@OData.Community.Display.V1.FormattedValue": "6/24/2024 1:27 PM",
                "createdon@odata.type": "#DateTimeOffset",
                "createdon": "2024-06-24T19:27:24Z",
                "preferredcontactmethodcode@OData.Community.Display.V1.FormattedValue": "Any",
                "preferredcontactmethodcode": 1,
                "statecode@OData.Community.Display.V1.FormattedValue": "Active",
                "statecode": 0,
                "businesstypecode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "businesstypecode": 1,
                "donotpostalmail@OData.Community.Display.V1.FormattedValue": "Allow",
                "donotpostalmail": false,
                "donotbulkpostalmail@OData.Community.Display.V1.FormattedValue": "No",
                "donotbulkpostalmail": false,
                "_ownerid_value@OData.Community.Display.V1.FormattedValue": "Shayne MacDonald",
                "_ownerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty": "ownerid",
                "_ownerid_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser",
                "_ownerid_value@odata.type": "#Guid",
                "_ownerid_value": "88384726-abec-ee11-a1fd-000d3ae91fb8",
                "address1_line1": "108-10466 Fulton DR.",
                "name": "HDD PRO",
                "address1_city": "Acheson",
                "donotemail@OData.Community.Display.V1.FormattedValue": "Allow",
                "donotemail": false,
                "address1_composite": "108-10466 Fulton DR.\r\nAcheson, Alberta",
                "address2_addresstypecode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "address2_addresstypecode": 1,
                "donotphone@OData.Community.Display.V1.FormattedValue": "Allow",
                "donotphone": false,
                "emailaddress1": "jonathan@hddpro.ca",
                "statuscode@OData.Community.Display.V1.FormattedValue": "Active",
                "statuscode": 1,
                "_modifiedby_value@OData.Community.Display.V1.FormattedValue": "Shayne MacDonald",
                "_modifiedby_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser",
                "_modifiedby_value@odata.type": "#Guid",
                "_modifiedby_value": "88384726-abec-ee11-a1fd-000d3ae91fb8",
                "shippingmethodcode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "shippingmethodcode": 1,
                "modifiedon@OData.Community.Display.V1.FormattedValue": "6/24/2024 1:27 PM",
                "modifiedon@odata.type": "#DateTimeOffset",
                "modifiedon": "2024-06-24T19:27:24Z",
                "_owningbusinessunit_value@OData.Community.Display.V1.FormattedValue": "orgeee4ebda",
                "_owningbusinessunit_value@Microsoft.Dynamics.CRM.associatednavigationproperty": "owningbusinessunit",
                "_owningbusinessunit_value@Microsoft.Dynamics.CRM.lookuplogicalname": "businessunit",
                "_owningbusinessunit_value@odata.type": "#Guid",
                "_owningbusinessunit_value": "9fb828a2-d0e8-ee11-a204-000d3ae8898f",
                "telephone1": "780-293-3468",
                "versionnumber@OData.Community.Display.V1.FormattedValue": "3,218,858",
                "versionnumber@odata.type": "#Int64",
                "versionnumber": 3218858,
                "_createdby_value@OData.Community.Display.V1.FormattedValue": "Shayne MacDonald",
                "_createdby_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser",
                "_createdby_value@odata.type": "#Guid",
                "_createdby_value": "88384726-abec-ee11-a1fd-000d3ae91fb8",
                "donotfax@OData.Community.Display.V1.FormattedValue": "Allow",
                "donotfax": false,
                "merged@OData.Community.Display.V1.FormattedValue": "No",
                "merged": false,
                "customersizecode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "customersizecode": 1,
                "marketingonly@OData.Community.Display.V1.FormattedValue": "No",
                "marketingonly": false,
                "accountratingcode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "accountratingcode": 1,
                "address2_addressid@odata.type": "#Guid",
                "address2_addressid": "1264203f-108f-4e9e-9b34-79795eda9373",
                "_owninguser_value@Microsoft.Dynamics.CRM.lookuplogicalname": "systemuser",
                "_owninguser_value@odata.type": "#Guid",
                "_owninguser_value": "88384726-abec-ee11-a1fd-000d3ae91fb8",
                "creditonhold@OData.Community.Display.V1.FormattedValue": "No",
                "creditonhold": false,
                "participatesinworkflow@OData.Community.Display.V1.FormattedValue": "No",
                "participatesinworkflow": false,
                "accountclassificationcode@OData.Community.Display.V1.FormattedValue": "Default Value",
                "accountclassificationcode": 1,
                "address1_addressid@odata.type": "#Guid",
                "address1_addressid": "e54b447c-d5e8-4eda-86b7-a57418c9fd2d",
                "address1_stateorprovince": "Alberta",
                "owningbusinessunit@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/o...",
                "owningbusinessunit@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/o...",
                "account_principalobjectattributeaccess@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_principalobjectattributeaccess@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "Account_ActivityPointers@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_ActivityPointers@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "ModifiedByExternalParty@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/M...",
                "ModifiedByExternalParty@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/M...",
                "Account_SyncErrors@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_SyncErrors@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Email_SendersAccount@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Email_SendersAccount@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Email_EmailSender@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Email_EmailSender@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Annotation@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Annotation@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_SharepointDocumentLocation@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_SharepointDocumentLocation@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "account_connections2@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_connections2@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_PostFollows@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_PostFollows@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_PostRegardings@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_PostRegardings@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_PostRoles@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_PostRoles@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "Account_ProcessSessions@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_ProcessSessions@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "entityimageid_imagedescriptor@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/e...",
                "entityimageid_imagedescriptor@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/e...",
                "account_master_account@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_master_account@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "Account_AsyncOperations@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_AsyncOperations@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "transactioncurrencyid@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/t...",
                "transactioncurrencyid@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/t...",
                "Account_DuplicateBaseRecord@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_DuplicateBaseRecord@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "preferredsystemuserid@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/p...",
                "preferredsystemuserid@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/p...",
                "createdonbehalfby@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c...",
                "createdonbehalfby@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c...",
                "Account_RecurringAppointmentMasters@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_RecurringAppointmentMasters@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Phonecalls@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Phonecalls@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "primarycontactid@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/p...",
                "Account_SocialActivities@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_SocialActivities@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_MailboxTrackingFolder@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_MailboxTrackingFolder@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "SocialActivity_PostAuthorAccount_accounts@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/S...",
                "SocialActivity_PostAuthorAccount_accounts@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/S...",
                "Account_SharepointDocument@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_SharepointDocument@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_CustomerAddress@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_CustomerAddress@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "slakpiinstance_account@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/s...",
                "slakpiinstance_account@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/s...",
                "slainvokedid_account_sla@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/s...",
                "slainvokedid_account_sla@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/s...",
                "Account_BulkDeleteFailures@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_BulkDeleteFailures@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "SocialActivity_PostAuthor_accounts@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/S...",
                "SocialActivity_PostAuthor_accounts@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/S...",
                "userentityinstancedata_account@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/u...",
                "userentityinstancedata_account@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/u...",
                "contact_customer_accounts@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c...",
                "contact_customer_accounts@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c...",
                "account_customer_relationship_customer@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_customer_relationship_customer@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "CreatedByExternalParty@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/C...",
                "CreatedByExternalParty@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/C...",
                "Account_Appointments@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_Appointments@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "account_parent_account@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_parent_account@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "Socialprofile_customer_accounts@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/S...",
                "Socialprofile_customer_accounts@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/S...",
                "Account_DuplicateMatchingRecord@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "Account_DuplicateMatchingRecord@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/A...",
                "account_activity_parties@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_activity_parties@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_connections1@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_connections1@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_actioncard@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_actioncard@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "stageid_processstage@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/s...",
                "stageid_processstage@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/s...",
                "account_customer_relationship_partner@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_customer_relationship_partner@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "modifiedonbehalfby@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "modifiedonbehalfby@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "msa_managingpartnerid@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "msa_managingpartnerid@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "msa_account_managingpartner@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "msa_account_managingpartner@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "msa_contact_managingpartner@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "msa_contact_managingpartner@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/m...",
                "account_adx_inviteredemptions@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_adx_inviteredemptions@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_adx_portalcomments@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_adx_portalcomments@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "adx_invitation_assigntoaccount@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "adx_invitation_assigntoaccount@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "powerpagecomponent_mspp_webrole_account@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/p...",
                "powerpagecomponent_mspp_webrole_account@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/p...",
                "account_sample_donations@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "account_sample_donations@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/a...",
                "crf86_account_crf86_purchaseorders_426@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c...",
                "crf86_account_crf86_purchaseorders_426@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c...",
                "crf86_account_crf86_jobsheet_318@odata.associationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c...",
                "crf86_account_crf86_jobsheet_318@odata.navigationLink": "https://orgeee4ebda.crm3.dynamics.com/api/data/v9.1/accounts(4bd0aac3-5f32-ef11-8e4e-002248b294e6)/c..."
            }
        ]
    }
}
__________________________
I brought up the Search box in the Raw Output and did a search for address1_  and it gives 6 results, none of them are the postal code. If I do the search for address1_postalcode  it comes back with 0 Results.

@pmwyatt8 

 

Thank you for verifying.. 

 

Change your code to do this (and apologies I should have said so right away but forgot to look at your body value)

 

in your HTML you can use Coalesce but there is a difference in whether there is a value and whether the column is there at all

 

Change you code to look like this.

Yours 

FLMike_0-1719796728903.png

 

Change it to this

['value'][0]?['address1_postalcode']

 

you technically can and should put a ? between any properties because if its not there, you shouldn't error out, you should be able to use Coalesce now properly

 

and you may not even get the error.

 

Try it this way (of course change them all) and of course if [0] is missing then you would need

?[0]?['address1_postalcode']

 


If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

Cheers

Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey

 

@FLMike Thanks very much for taking the time to look at this and offer your advice for this solution. 

Just putting the question mark in the formula where you said it was missing did the trick and the Flow works now without an issue.

Much appreciated!!

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages