Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MI-2553] Add plugin API to get filtered records, create post for rec… #26

Draft
wants to merge 3 commits into
base: epic_phase_3
Choose a base branch
from

Conversation

ayusht2810
Copy link

…ords and detailed records

server/plugin/api.go Outdated Show resolved Hide resolved
server/plugin/api.go Outdated Show resolved Hide resolved
server/plugin/client.go Show resolved Hide resolved
records, statusCode, err := client.GetRecordsFromServiceNow(recordType, assignmentGroupID, serviceID)
if err != nil {
p.API.LogError(constants.ErrorGetRecords, "Error", err.Error())
_ = p.handleClientError(w, r, err, false, statusCode, "", fmt.Sprintf("%s. Error: %s", constants.ErrorGetRecords, err.Error()))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the return type of this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it is returning an error we should check that

@ayusht2810 ayusht2810 marked this pull request as draft January 12, 2023 04:30
Base automatically changed from MI-2552 to epic_phase_3 January 24, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants