The case is to persist the data to Dynamics CRM and that part I am already doing. But we need the PDF into SharePoint, When I looked into the SharePoint Connector it only uses 2013 and 2010 on premise and we have SharePoint Online. So placing the PDF on CRM is not viable since it does not have a field for it and I see no way of placing it on SharePoint online.
So I was trying to a rest endpoint option to see if I can place all the payload including the pdf into it and have a function take care of it and do what I need above.