Skip to content Skip to main navigation Skip to footer

Error Message: redirect_URI_mismatch (Using Community User)

How to Resolve: 
You need to modify your custom button code. We have listed an example of button code below using Lead as the example object:

Original Button Code
/apex/rsdoc__GenerateDocument?id={!Lead.Id}&templateId=GDT-000004&attach=true&output=pdf&emailAction=autosend&emailTo={!Lead.Id}&emailTemplate=00X28000001SwGo

Change Button Code To
{!URLFOR($Site.Prefix + ‘/apex/rsdoc__GenerateDocument?id=’ + Lead.Id + ‘&templateId=GDT-000004&attach=true&output=pdf&emailAction=autosend&emailTo=’ + Lead.Id + ‘&emailTemplate=00X28000001SwGo’)}