Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Field Updates #396

Open
josh-pratt opened this issue Aug 9, 2021 · 4 comments
Open

Custom Field Updates #396

josh-pratt opened this issue Aug 9, 2021 · 4 comments

Comments

@josh-pratt
Copy link

The field ID support in this solution is really great and seems to work well. However, there seems to be a problem when trying to save updates back to the loan when those updates are to custom fields. For example, the following flawlessly updates the loan number field in the loan and successfully records that update back to Encompass.

loan.Fields["364"].Value = "987654321";
await client.Loans.UpdateLoanAsync(loan);

Further, the following successfully updates the custom fields for the loan in memory.

loan.Fields["CX.STRINGFIELD"].Value = "Value1";
loan.Fields["CX.DATEFIELD"].Value = DateTime.Today.Date;
loan.Fields["CX.NUMERICFIELD"].Value = 255;

But, then subsequently, when trying to write those changes back to Encompass, the changes are not successfully recorded in the Encompass loan file.

await client.Loans.UpdateLoanAsync(loan);

I seem to remember a while back running into a similar problem when trying to update custom fields using Ellie Mae's API directly without EncompassRest, but it has been so long, that I don't recall exactly what happened.

Guidance?

@josh-pratt
Copy link
Author

@TylerBrinkley, am I the only one seeing this issue?

@rbpeterson2
Copy link

rbpeterson2 commented Aug 26, 2021 via email

@AndrewAguayo
Copy link

What I had to do was create a separate loan object, set only the custom fields that were needed, then perform an update.

Loan loan = new Loan(client,loanId);
loan.Fields["whatever custom field"].Value = "whatever value";
await client.Loans.UpdateLoanAsync(loan);

This kept the json only to the customfield entity and worked for the last 2 years.

However since July of this year, I'm having problems updating new created custom fields that added to a previously existing loan.

I have tested this in Postman using EllieMae's provided collection. The V1 endpoint returns 204 No Content, but the field is not updated. V3 completely fails with a 400 Bad Request.

{
"summary": "Bad Request",
"details": "Request Payload has errors",
"errors": [
{
"summary": "documentContracts.customFields",
"details": "Invalid field name or value"
}
]
}

Still have pending cases with EllieMae on this.

@TimH-SL
Copy link
Contributor

TimH-SL commented Oct 22, 2021

Could my latest issue be related?

#401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants