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

Salesperson API #27664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Salesperson API #27664

wants to merge 1 commit into from

Conversation

miljance
Copy link
Contributor

@miljance miljance commented Nov 21, 2024

Summary

A new API page for Salespeople/Purchasers
I created the tests in a similar manner that I found suitable for Locations, but I did not manage to run the test. Thus, looking forward to the feedback if tests do pass in Microsoft Pipelines or how to test those calls in a container. Currently I do not have a clue how to do it.

Work Item(s)

Fixes #26806

Fixes AB#541735

@miljance miljance requested a review from a team as a code owner November 21, 2024 12:39
@github-actions github-actions bot added the linked Issue is linked to a Azure Boards work item label Nov 21, 2024
{
Caption = 'Name';
}
field(eMail; Rec."E-Mail")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
field(eMail; Rec."E-Mail")
field(email; Rec."E-Mail")

@onbuyuka
Copy link
Contributor

onbuyuka commented Nov 21, 2024

For tests, you need to use Isolation Disabled test runner codeunit to run them in a container

@@ -0,0 +1,122 @@
codeunit 139870 "APIV2 - Salesperson/Purch E2E"
Copy link
Contributor

Choose a reason for hiding this comment

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

It'd be great to add an Update test too

@JesperSchulz JesperSchulz added the Integration GitHub request for Integration area label Nov 21, 2024
Copy link
Contributor

@pri-kise pri-kise left a comment

Choose a reason for hiding this comment

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

I don't how useful this API will be with this limited set of fields.

At least the following further fields should be added in my opinion:

  • "Phone No."
  • "E-Mail 2"
  • "Job Title"
  • "Commission %"
  • "Privacy Blocked"
  • Blocked

and maybe also "Coupled to Dataverse".

LibraryUtility: Codeunit "Library - Utility";
IsInitialized: Boolean;
EmptyJSONErr: Label 'JSON should not be empty.';
ServiceNameTxt: Label 'salespeoplePurchasers';
Copy link
Contributor

Choose a reason for hiding this comment

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

This lable should be locked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Integration GitHub request for Integration area linked Issue is linked to a Azure Boards work item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BC Idea]: API Page for Sales Persons
4 participants