- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 03:29 AM
Suppose I am entering some data in a form of table u_candidate_details and when i submit or save the form a record will be inserted in table u_candidate_database and a pdf attachment will be added on the record that was created on table u_candidate_database . the attachment will be pdf of the form view u_candidate_details
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 04:02 AM
Hey Suprakash,
Write a INSERT BUSINESS RULE -
var gr = new GlideRecord ('u_candidate_database');
gr.addQuery(Filter_condition);
gr.query();
if(gr.next())
{
var rm = new sn_ws.RESTMessageV2();
rm.setHttpMethod('GET');
var url = gs.getProperty("glide.servlet.uri") + current.getTableName()+ '.do?PDF&sys_id=' + current.sys_id;
rm.setEndpoint(url);
rm.setBasicAuth(gs.getProperty('glide.user.userid'), gs.getProperty('glide.user.password'));
rm.saveResponseBodyAsAttachment(gr.getTableName(),gr.sys_id,current.number+".pdf");
var response = rm.execute();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 09:20 AM
Mark Answer as correct to close this thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2020 04:07 AM
Hello,
How can i convert a notification body as a pdf and attach to that same email.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 09:26 AM
Suprakash,
Please mark it as correct and close the thread.. I think you must do this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 09:41 AM
At first I will like to thank Nayan
Abdul Can you please provide me or help what are what you added in sys_properties table . so that i also add into my instance also

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 09:53 AM
Suprakash,
go to sys_properties table and create 2 new properties name it as glide.user.userid and glide.user.password, give type as string and value must be your user id for glide.user.userid table & your password for glide.user.password type as string and value must be your password.
then the magic happens
Thanks,
Abdul Azeez
PS: Hit like, Helpful or Correct depending on the impact of the response