This topic contains 4 replies, has 0 voices, and was last updated by Olivier Gagnon NC 8 years, 3 months ago.

  • Author
    Posts
  • #6269

    dlindy

    We are using OneWorld with 6 subsidiaries, each of which has at least one Department and Location some have several. I have created a custom field on the employee record which stores the employees default location and department and would like to auto-populate those values, if present, to the transactions that the employee enters. These are required fields on every transaction, but with the exception of few employees, can be defaulted by employee.

    Looking for a simple suitescript 1.0 or 2.0 that will source the default department and location from the user/employee record and write it to the desired transactions subsequent to the entity sourcing (customer or project). This cannot be done via workflow. Thank you.
    This is a cached copy. Click here to see the original post.

  • #6270

    Olivier Gagnon NC

    Well if you use the standard Department and Location fields you can use the Role to default them on transactions. That would be much simpler.

  • #6271

    zackb22

    Why cant this be done by workflow? Are you trying to add it to the lines on the transaction as well or in the main? You could have them set after field sourcing of employee and then set department and location based upon employee custom fields.

  • #6272

    dlindy

    Hello Olivier,

    It appears you are correct and this issue is now closed for us. I was not ware that I could use the user Role, “Division/Location Restrictions” dropdown set to “None – Default to Own”. This issue now goes away. Ironically, I have discussed this issue with silver support when trying to solve this problem with a workflow and was told to do it via scripting because workflows could not source the information from the user record. Thank you so very much!

  • #6273

    Olivier Gagnon NC

    Excellent, glad that solved it

You must be logged in to reply to this topic.