Fixed – “The relative url contains invalid characters. Please use a different name. Valid relative url names cannot ends with the following strings: .aspx, .ashx, .asmx, .svc , cannot begin or end with a dot, cannot contain consecutive dots and cannot contain any of the following characters: ~ ” # % & * : ? / \ { | }. “ error while creating SharePoint Document Location – Dynamics 365 / Dataverse

Nishant RanaDyn365CE4 months ago13 Views

We were using the below code to create a sharepointdoucmentlocation record through a C# Console App. For folderName we were using the below format, similar to what CRM does, when someone opens the document tab for the record, to create the sharepointdocument location record. {name} + “_” + {GUID} However, while creating one particular record … Continue reading “Fixed – “The relative…

Continue Reading Nishant Rana’s Article on their blog

Fixed – “The relative url contains invalid characters. Please use a different name. Valid relative url names cannot ends with the following strings: .aspx, .ashx, .asmx, .svc , cannot begin or end with a dot, cannot contain consecutive dots and cannot contain any of the following characters: ~ ” # % & * : ? / { | }. ” error while creating SharePoint Document Location – Dynamics 365 / Dataverse

We were using the below code to create a sharepointdoucmentlocation record through a C# Console App. private void CreateAssociateSharePointDocumentLocation(string folderName, Guid recordGuid, ServiceClient serviceClient) { var documentLocation = new Entity(“sharepointdocumentlocation”); documentLocation[“name”] = “Documents on Default Site 1”; documentLocation[“relativeurl”] = folderName; documentLocation[“parentsiteorlocation”] = new EntityReference(“sharepointdocumentlocation”, new Guid(parentSiteorLocation)); documentLocation[“regardingobjectid”] = new EntityReference(“schemanametable”, recordGuid); serviceClient.Create(documentLocation); } For folderName…

Blog Syndicated with Nishant Rana’s Permission

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
January 2025
MTWTFSS
   1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31   
« Dec   Feb »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...