Results 1 to 5 of 5

Thread: How to add address book record through AIS API

  1. #1
    New Member
    Join Date
    Jun 2015
    Location
    New York
    Posts
    2

    How to add address book record through AIS API

    Hi,
    I've been an E1 developer for about 2 years now and have learned lots of good tips from the forum here.

    I'm trying to familiarize myself with the AIS interface of EnterpriseOne.
    I've been able to do several types of requests successfully including retrieving token, logout, return data from a form, and adding grid records through a form.

    Now I wanted to add a new employee record into the address book app (P01012), but I can't get it to work. The JSON response from the server is not showing any errors but the record is not being added.
    I can create the record using the same values manually through P01012, but not through AIS API.

    Would greatly appreciate it if anyone had any insight. Thanks.

    Here is the JSON request (I wasn't sure if formServiceAction is needed, so I tested leaving it out, and set to C, U, same result):
    {
    "token": "044znmWtUM87vuN/pwCbnAThCs7fSW+q5dT88elUCaTIZg=MDE5MDEwLTU0NTc1OTI yMTUwMjA1NzE2NUFJUyBDbGllbnQxNTE1NTA2NDM2Njg3",
    "formServiceAction": "C”,
    "formActions": [
    {
    "command": "SetControlValue",
    "value": "400002",
    "controlID": "12"
    },
    {
    "command": "SetControlValue",
    "value": "User 400002",
    "controlID": "28"
    },
    {
    "command": "SetControlValue",
    "value": "400002",
    "controlID": "32"
    },
    {
    "command": "SetControlValue",
    "value": "E",
    "controlID": "36"
    },
    {
    "command": "SetCheckboxValue",
    "value": "off",
    "controlID": "67"
    },
    {
    "command": "SetCheckboxValue",
    "value": "on",
    "controlID": "129"
    },
    {
    "command": "DoAction",
    "controlID": "11"
    }
    ],
    "deviceName": "AIS Client",
    "formName": "P01012_W01012A",
    "version": "ZJDE0001"
    }

    The JSON response did not report an error but I've attached it in a text file since it's too long to paste here.
    Attached Files Attached Files
    ___________________________
    EnterpriseOne 9.1.5.6, Oracle DB

  2. #2
    Member nkuebelbeck's Avatar
    Join Date
    Mar 2012
    Location
    Minnesota
    Posts
    509
    Analyst/Developer
    E1: 9.2 | TR: 9.2.1.4 | JAS: WebLogic | ES: OS400
    DB: DB2 | WebDev Client: Win7Pro (64 bit), VS 2010

  3. #3
    New Member
    Join Date
    Jun 2015
    Location
    New York
    Posts
    2
    Yes, after further testing I found out I had to use the appstack endpoint.
    I was originally trying to use formservice to directly access P01012|W01012A.

    In case anyone is interested I had to make about 4 requests:
    - Open P01012 | W01012B
    - Press the "+" button to get to P01012|W01012A
    - Fill in fields then press the ok button
    - Close P01012

    Thanks
    ___________________________
    EnterpriseOne 9.1.5.6, Oracle DB

  4. #4
    The first two requests are not needed. You can open P01012|W01012A form directly, enter the fields and press ok button.

  5. #5
    what endpoint are you sending that at?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The legal restrictions and terms of use applicable to this site are available here.
Use of this site signifies your agreement to the terms of use.
JDELIST is NOT affiliated with JD Edwards® & Company, Oracle or Peoplesoft. Contents of this site are neither endorsed nor approved by JD Edwards® & Company, Oracle or Peoplesoft.