function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Issue in getContentAsPDF() Function

 In my visualforce page i am using getContentAsPDF() for generating feeditem.
After saving the data i am generating feeditem. At this point Feeditem is not having recently saved data.
i suspect getContentAsPDF() not getting the recent data.
Can anybody help me on this?

I am not sure how r u getting the pagereference if you are doing some thing like this then try to change in the below way and try

Using Page.existingPageName instead of PageReference ('partialURL') to get the pagereference.....