I am attempting to use the Shell to add a Title Exception or Requirement (or update the existing text). I am able to get the existing text however if I try to update the text I get an error An exception of type 'System.MemberAccessException' , "Cannot Access Member". This may not be the proper way to Add/Edit Exceptions and Requirements, so if there is a better way to accomplish the add/edit of title expectations/requirements I am open to anything that works!
string FirmFile;
FirmFile = "10-10654-PUR";
IOrderInfo Search = os.Orders.Where(t => t.Number == FirmFile).FirstOrDefault();
if (Search != null)
{
IOrder order = ClosingSiteC.SPSelect.os.OpenOrder(Search, OrderEditMode.ReadWrite);
IOrderItem title = (IOrderItem)order.GetProperty("Title");
IList Commitments = (IList)title.GetProperty("Commitments");
foreach (ICommitment Commitment in Commitments)
{
dynamic Excep = (IList)Commitment.GetProperty("Exceptions");
foreach (dynamic E in Excep)
{
var ETet = E.Text;
E.Text = "Change Exception Text";
}
}
}
Add and/or Update Title Exceptions and Requirements
Moderator: Phil Barton
-
- Posts: 1377
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Add and/or Update Title Exceptions and Requirements
Is the account that is logged into Select by your code do the changes manually in the Select GUI? I want to rule out any permission issues. Log into Select with the same account and test it.
Bob Richards, Senior Software Developer, SoftPro
Re: Add and/or Update Title Exceptions and Requirements
That was the issue... I had changed the test account permissions and missed switching back.
Thanks for the assistance.
Thanks for the assistance.