web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting a customer acc...
Power Automate
Answered

Getting a customer account details from Fin Ops using a flow

(0) ShareShare
ReportReport
Posted on by 5

Hi everyone,

 

First time posting so I'm hoping someone can help 🙂
I am setting up a Power Virtual Agent Chat Bot for internal use. I want to be able to request a customer account number and Power Automate to then go and search D365 Fin Ops to find that Account Number and give me back the Customer name.

I have two issues;

 

1) It throws out an error even if the account number is correct.

2) When typing in the account number it removes any leading zeros which effectively changes the account number

 

MonkeyAb_0-1669643057096.png

MonkeyAb_1-1669643147323.png

MonkeyAb_2-1669643231709.png

 

original account number that was being searched was 004001

Categories:
I have the same question (0)
  • Verified answer
    TaylorBecktold Profile Picture
    295 on at

    Hey @MonkeyAb -

     

    I believe I can assist with issue #2, but this might fix issue #1 as well.

     

    I recommend passing the account number as a string instead of a number. It is removing the leading numbers due to it assuming that is an integer value and integers typically do not have leading 0s. 

     

    Did my reply help? Please give it a thumbs up.
    Did my reply answer your question? Please mark it as a solution!
    If you liked my response, please consider giving it a thumbs up.

    Check out my blog: https://azwhizkid.com/

  • MonkeyAb Profile Picture
    5 on at

    Thanks Taylor.

     

    So I found out my issue for error 1 was simply having a space when it shouldn't (amateur I know)
    And you were right, I changed it to string and it maintained the format of the number without removing leading zero's.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard