REST API LastCallHeaders

image

@josecgomez , just updated to EpicorRestAPI 2.0.3
Has something happened to EpicorRest.LastCallHeaders? I don’t seem to be able to access it.

Am I missing something?

Thanks in advance!

Thank headers of the last call are going to be in the last response object

1 Like

Thanks Jose. The following worked:

dynamic dContext = ((IEnumerable<dynamic>)dBlankConfig.Response.Headers).Where(header => header.Name == "ContextHeader").FirstOrDefault();

I’m wondering if you’d be willing to help me through a related problem, maybe I should start a new thread?

I’m trying to call the PreStartConfiguration method through BO.ConfigurationRuntimeSvc.
I receive a HttpStatus 400 with the error message “No ttPcConfigurationParams record was found, at least one ttPcConfigurationParams record is needed.”

As far as I can tell I’m passing in the correct datasets but I’m confused by the reference to temp tables. Have you come across anything like this before?

Thanks Jose, I appreciate your help!

1 Like

Start a new thread plz I will try to help

1 Like