You need to sign in to do that
Don't have an account?
kiran2000
document link on visualforce page
Hi All,
On upload of document to content we are creating records on custom object with a field containing the link to document and we are displaying the field on visualforce page.But the issue is some users try to delete the document from content and the link still shows up on visualforce page as the link doesn't gets deleted from the field.(custom object) |
Thanks
Hi,
You cannot write a triiger on Document to update the link on the Custom Object. What you can do is, write a batch apex and schedule it to check if all the links on the Custom object exist as document. If it exitss, leave it, If it doesn't change the link to blank and update the record.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Regards,
Arun.
All Answers
I have updated it.
Hi,
You cannot write a triiger on Document to update the link on the Custom Object. What you can do is, write a batch apex and schedule it to check if all the links on the Custom object exist as document. If it exitss, leave it, If it doesn't change the link to blank and update the record.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Regards,
Arun.