Announcements
<link-entity name="sharepointdocumentlocation"from="regardingobjectid" link-type="outer"to="new_caseworkdocumentid" alias="ap" > <attribute name="sharepointdocumentlocationid" /> <attribute name="name" /> <filter type="and" > <condition attribute="statecode" operator="eq"value="0" /> </filter> </link-entity>
*This post is locked for comments
Just to clarify, CRM only stores the SharePoint location (i.e. the folder). It does not store any information about the files that are stored in that location (the information about the files is stored solely in SharePoint)
Hi krishna prasad,
As far as I know, Sharepoint file name is not stored in CRM.
Thanks
Justin Jose
Hi Krishhna,
No in SharepointDocumentLocation there is no such FileName attributes as I shared you already MSDN reference .
Please do some alternate way which I have already suggested , it will definitely work for you .
Otherwise you can wait for someone to reply on this .
Iam using SharepointDocumentLocation entity and i didnt find any field which has attachment Name in it .
This is another entity in the screenshot you shared called sharepointdocument , could you please check this entity once . I have some doubt as this is for only associated view , not sure you may try.
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="sharepointdocument">
<attribute name="documentid" />
<attribute name="fullname" />
<attribute name="relativelocation" />
<attribute name="sharepointcreatedon" />
<attribute name="filetype" />
<attribute name="modified" />
<attribute name="sharepointmodifiedby" />
<attribute name="title" />
<attribute name="author" />
<attribute name="sharepointdocumentid" />
<attribute name="readurl" />
<attribute name="editurl" />
<attribute name="ischeckedout" />
<attribute name="absoluteurl" />
<attribute name="locationid" />
<attribute name="iconclassname" />
<order attribute="relativelocation" descending="false" />
</entity>
</fetch>
How come FileName is showing in Sharepoint locations ? What would be binding fields for Name Column here ?
Hello Krishna,
Hi Krishna did you tried with retrieving absoluteurl or relativeurl? Seems you need to extract the file name splitting from the absolute URL /Name /relativeurl.
Name attributes contains Name of the SharePoint document location record and not exactly file name . Seems there no attributes contains in entity sharepointdocumentlocation which stored only file name .
Please refer below msdn reference.
msdn.microsoft.com/.../mt622442.aspx
docs.microsoft.com/.../sharepointdocumentlocation
Hope this helps.
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator