Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

How to change format of lookup column to string

(0) ShareShare
ReportReport
Posted on by

Hi, Everyone!

 

I wanted to use the chosen Approver in Microsoft Forms and use it as the lookup value in my list to get the email address of the approver from a list of Enrolled Approvers.

 

Microsoft Forms

janlisondra_0-1600788733389.png

 

List of Enrolled Approvers

janlisondra_4-1600789200042.png

 

Primary List

janlisondra_0-1600789987358.png

janlisondra_2-1600790082111.png

 

Power Automate - My flows

janlisondra_1-1600788828643.png

janlisondra_2-1600788853601.png

 

The error tells me that the input is invalid since it is in a string format and that the lookup column is in an integer (which I did not remember setting).

janlisondra_3-1600788951464.png

 

How do I change the format of the lookup column and allow inputs that are in sting formats?

 

I would appreciate any help as I am fairly new to Power Automate, SharePoint and all.

 

Thank you so much!

 

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: How to change format of lookup column to string

     

    Hi @janlisondra ,

     

    You could initialize three integer variables to store the filtered item IDs respectively.

     

    Store the filtered item IDs in the three Apply to each.

     

    Configure the Create item action in the last step, and then configure three variables in this action.

     

    Hope that makes sense.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at
    Re: How to change format of lookup column to string

    Hi Barry,

     

    Since the info of all three approver names will come from the same form, what is the best practice for this? Shall I create the following series of actions?

     

    1) 1st Approver - Create Item

    2) 2nd Approver - Update Item

    3) 3rd Approver - Update Item 2

     

    Is there a workaround that I can just retrieve 3 IDs and input them in their respective lookup columns in one Create Item action?

     

    Thanks,

    Jan Lisondra

  • v-bacao-msft Profile Picture
    on at
    Re: How to change format of lookup column to string

     

    Hi @janlisondra ,

     

    Similarly, you can use the same method to get other approver emails. Then in the following steps, use Update item to update the item just created. When configuring the Update item action, only the updated field value is configured.

     

    You may need to initialize an integer variable to store the ID of the newly created item, and use the Set variable action under the Create item action to store the item ID.

     

    Hope that makes sense.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at
    Re: How to change format of lookup column to string

    Thanks, Barry, for responding.

     

    I got this running for the first approver. How shall I repeat the same for the next two approvers?

     

    Best Regards,

    Jan Lisondra

  • v-bacao-msft Profile Picture
    on at
    Re: How to change format of lookup column to string

     

    Hi @Anonymous ,

     

    You need to filter the corresponding item in the lookup list first, and then fill the item ID contained in the item into the lookup field.

    50.PNG

    When configuring Filter Query, you need to get the internal name of the field first. You can go to the settings to get the internal name of the field.

    51.PNG

     

    Best Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics