Skip to content

ContainerERP/psft-executequery-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

psft-executequery-client

Small Python helper to call PeopleSoft ExecuteQuery.v1 REST endpoints and parse XML results.


Basic usage

from psft_client import PeopleSoftClient, parse_executequery_xml

client = PeopleSoftClient(
    base_url="https://<host-or-ip>/PSIGW/RESTListeningConnector/PSFT_EP/ExecuteQuery.v1",
    auth=("PSREST", "your_password_here"),  # or ps_token="..."
    verify=False,  # dev only
)

xml = client.execute_query(
    query_name="FM_VENDOR_MASTER",
    prompts={"VENDOR_STATUS": "I", "VENDOR_ID_OFFSET": ""},
    maxrows=10,
)

rows = parse_executequery_xml(xml)
print(rows[0])


##  Notes

verify=False skips SSL certificate validation.
Use this only in DEV / test environments.
In PROD, point verify to a CA bundle or leave it as True.

The order of keys in prompts matters because PeopleSoft expects
names and values aligned:

prompt_uniquepromptname = A,B
prompt_fieldvalue       = 1,2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages