How to update/set lookup fields using Power Automate Flow

 By using Trigger outputs

if(

    empty(triggerOutputs()?['body/_apy_lookuprid_value']),

    '',

    concat(

        'apy_lookupfieldname(',

        triggerOutputs()?['body/_apy_lookupid_value'],

        ')'

    )

)


By Using Loop/ApplyToEach 

if(

    empty(items('Apply_to_each')?['_apy_lookupid_value']),

    '',

    concat(

        'apy_lookupfieldname(',

        items('Apply_to_each')?['_apy_lookupid_value'],

        ')'

    )

)

Comments

Popular posts from this blog

Basic Plugin Code in D365 using C#

CURD (Create, Update, Retrieve and Delete) Operation in D365 using Power Shell Script

Meta Data Using WebApiRequest