I am developing a custom page to upload components in CMS using Core service. Image fields in component will refer media manager images. I have ecl uris for images so i need to create stub for them and then use the tcmid of stubs in creating component. Stubs can be created using ECL Content Library but i could not find any reference for using ECL Content Library in Custom page.
1 Answer
As Lars explained in this answer, you can create MM components using EclService. You can access it via mountpoint in Core Service.
-
Hi @Marco Milic I am getting below error while trying to use method 'public IDictionary<string, string> CreateOrGetStubUris(IEnumerable<string> eclItemUris) ' Error Occured while creating Xml-msgAccessDeniedForImpersonationUser Commented Feb 20, 2017 at 15:07
-
3The user you're running as (by default, NETWORK SERVICE) is not allowed to access Tridion - you need to impersonate.– Nuno Linhares ♦Commented Feb 20, 2017 at 15:54
-
@NunoLinhares I tried to impersonate client with "domainname\\validuser" but on impersonate step it gives me below exception: Commented Feb 21, 2017 at 6:58
-
The user you're trying to impersonate must exist in Tridion. Also afterwards, make sure that he has the appropriate rights/permissions to execute the desired action or else you'll get another exception. Commented Feb 21, 2017 at 8:28
-
1Thanks @Marko it worked i was trying to impersonate user that's why it was not working and when i tried with network credentials on client then it worked. Commented Mar 5, 2017 at 6:58