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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Automatically Trim Whitespace During Import

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

I have two systems: Dynamics 365 Sales CE and FO, those two are integrated.

When user is using D365 CE and tried to import the data but accidentally there is a white space behind, it will create data in D365 CE with white space as well.

Then data is integrated to D365 FO, will create record without whitespace.

The issue is when the data processed something on FO and throw back to CE, it won't recognize the data, string is not matched.

For example:

D365 CE = "Class A " --> with whitespace behind "A'

D365 FO = "Class A" --> without withspace

So my question is which one is better and feasible to be applied?

1. Set D365 FO to receive data as it is (with whitespace)

2. Add logic in D365 CE, when user import the data then remove whitespace behind.

I have the same question (0)
  • Pankaj Gogoi Profile Picture
    3,177 on at

    Hi,

    I think it's better to use Int or Guid for the comparison instead of string? But there are times when we have to compare strings.

    I prefer updating the Source data so that downstream environments doesn't insert invalid data, else we have to correct the data in all the environments. If you are moving data both ways then create a separate field for comparison, some sort of alternate keys.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/define-alternate-keys-entity

    Best Regards

    PG

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 174

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans