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 / Read CSV file and impo...
Power Automate
Unanswered

Read CSV file and import in Dynamics 365 Finance and Operations

(0) ShareShare
ReportReport
Posted on by

Hi,

New to Power automate, went through various youtube links and community posts. But stuck in a simple process,
Kindly help me with the below,

I have a CSV file in OneDrive which am trying to import to D365FO in Customer Groups entity.

These are the initial steps i followed,


Diya2_0-1681133555574.png

 

Compose > newLine, i just clicked enter
Compose >Split>

split(outputs('Get_file_content_using_path')?['body'], outputs('newLine'))
 
Compose > ColumnName>
split(first(outputs('Split')),',')
 
variable as 0 and RowCount as length of CSV file (eg.3)
 
Condition
Diya2_2-1681133906161.png

If 0 < 3

then yes

Apply to each > I skip the header (ColumnName)

Used Create a record and assign values to the customer group id 

as split(item(), ',')?[0]

 

And then I increment the variable to 1.

Expected output:

Loop through records in csv and import in Customergroups dataentity and stop the import if the condition after the last row of the csv.

 

Actual output:

Apply to each loops already and throws error after creating 3 records with the error, customer group must be filled in.

How i need to change the flow for this condition. Please assist

 

 

 

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard