Sage 300

 View Only
  • 1.  Setting up an API endpoint to allow shipments to b

    Posted 09-13-2018 14:19
    Setting up an API endpoint to allow shipments to be created in Sage 300 2018. I created a macro and translated into C# but getting a strange error: ""Explicit composition with OESHIHO is required to default optional fields. (9181 OESHIH1.C)"" There is a composition line: oeSHOpt.Compose(new AccpacCOMAPI.AccpacView[] { oeSH }); (vb version is OESHI1detail5.Compose Array(OESHI1header)) - no error here The error occurs on the line of code: oeSH.Process(); Any ideas?


  • 2.  RE: Setting up an API endpoint to allow shipments to b

    Posted 09-13-2018 16:11
    @PhilMcIntosh - I hate it when you convert a macro into C# but still get an error but the macro runs smoothly. Did you check the view composition for the complete view and not just the individual line. Perhaps it's missing there?


  • 3.  RE: Setting up an API endpoint to allow shipments to b

    Posted 09-14-2018 06:19
    Thanks, Lloyd - the header composition was missing a view, which put the OESHIHO in the wrong sequence.