REST - First Attemp... Create QuoteHed

After alot of fighting here and there, I finally make it through the basics.

But, I just can’t create a QuoteHed. For smaller BO (ABC for instance) no problem. But I face a big issue with QuoteHed. Using swagger, and calling multiple methods necessary for the creation of the quote, using the response (ds) of each call and pass it to the next method, the update doesn’t work (error 500).

Among all, my main concern is the filling of the QuoteHed dataset. I notice there is a difference in field values between the UI behavior and my utiilsation of rest service (Quote).

I would appreciate some clarifications.

Thanks in advance.

To be more precise, GetNewQuoteHed doen’t contain information relative to the marketing campaign. Altough, that information is returned by the GetNew made from UI. I really don’t follow.

I got it. Through REST, The GetNew is brining back two rows. I didn’t pay attention at first.

I kept the one with RowMod = “A” , called the oher methods up to the update and it worked!

1 Like

I am tasked with making a quote record with REST.

I don’t understand conceptually what I need to do. How do you make a quote?
What methods do you call and what data do you need?

Use the trace log and create a quote manually via the UI. Those are the same calls you’ll need to make with the REST interface.

Once what @Aaron_Moreng has suggested will be done, work with postman (or other) to make REST API calls manually and to familiar your self with the approach (if you’ve never worked with REST). After, you’ll be set up to begin your calls with code.

Do you know what the service is called?
Is this the correct service name: Erp.BO.QuoteSvc

1 Like

Please, do a trace using the tracing option functionality. You’ll see all calls made to the service.

image

Does anyone know the difference between these two things in the swagger?

Read this. It’s a very good entry point.

OData is a set of “standard” OData methods that conform to the OData standard. The “custom” methods are really the Epicor BO methods. In most cases you’ll use the custom methods

Yes, okay so I did a trace log but I don’t understand how to read it. :frowning:

But do a full trace from the beginning. And read what I’ve suggested (REST Overview Novel)

That’s good to know. I guess I really don’t understand how to read the trace log. I did read the REST novel before and skimmed it again.

Unfortunately it never explains how to read the trace log to find out what the methods and business object to use. That’s where I’m stuck.

The trace log is sort of it’s own beast (in my opinion), but once you realize what you’re looking at, it gets easier. Like Louis said, the highlighted text you posted is the method of the business object being called. The table view you see is the dataset that’s being passed to the method.

…and what ends by Impl is the service (BO).

Okay good. So I’m on the right track. If that’s the “update” method, what is the business object that goes with it? I can’t find a BO that’s called QuoteImpl.

QuoteImpl is the same as QuoteSvc
Impl (implementation)
Svc (service)

Look at the Epicor Help it goes into pretty thorough detail about Tracing
https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.2.200/enu/Standard/DatabaseTools/TracingOptions.html

Including where to see BO name, etc.