Skip to Content

Expense Report Mileage Collection: 'CreateWithTemplate'

Hi all,

I'm working on uploading expense reports using a combination of an XML input run and some scripting and have come across an issue. The Mileage collection of the ExpenseReport BO is 1..n, but there's no Create() method. There's a CreateWithTemplate() method, but I'm not sure how to use it. At first I tried to bypass this by just going newExpenseReport.Mileage.GetFirst() and accessing elements that way, but when an expense report instance is first created the Mileage collection doesn't have any instances in. So what I need to do is figure out how to add one or more instances to this collection: you can do it in the front end when creating an expense report by going into 'Add more mileage information', so logically it should be possible in scripting as well. Anyone had any experience with this?

Thanks,

Lewis

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 29, 2016 at 02:57 AM

    Hi Lewis,

    Milege is not PSM Write released, hence you cannot update it.

    You may ask the application to release for PSM Write.

    Thanks, Pradeep.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.