• #21559
    Salesforce | shariq shariq #1

    How to get csv file in a web service post method in Salesforce?

    I want to get csv file in the parameter of web service post method.

    Tagged: , , , , ,

    #21560
    Salesforce | Aman Aman #6

    Hello Shariq,

    you can try this :

    @RestResource(urlMapping=’/contactCsv/*’)
    global class RESTContactController {
    @HttpPost
    global static void newContacts(){
    RestRequest req = RestContext.request;
    System.debug(‘csv’+req);
    }
    }

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending
Property of Forcetalks.com
Copyright 2017 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?