Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Using Web Service to Create Course registration attendancess.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Im using web service to create Course registration attendancess.

The page i use is Course Registration Lines.

This is my code.

$CourseAttendant = [
'Kursusnummer' => '4700', //course ID
'Deltager_firma' => '17414', //Company ID
'Deltager_nummer' => '17415' //Customer ID
];

$CourseAttendant->Create(['CourseRegistrationAttendess' => $CourseAttendant]);

But i receive error " Uncaught SoapFault exception: [a:Microsoft.Dynamics.Nav.Types.Exceptions.NavCSideRecordNotFoundException] The Registration Header does not exist. Identification fields and values: Nummer="

Does anyone know, how to insert course registration with web service?

Thanks,

*This post is locked for comments

  • Suggested answer
    Zaid Tariq Profile Picture
    Zaid Tariq 2,266 on at
    RE: Using Web Service to Create Course registration attendancess.

    Hi

    I guess you also need the Course Registration Header Number. Can you something like:

    $CourseAttendant = [

    'Nummer'='4700' //Header Number

    'Kursusnummer' => '4700', //course ID

    'Deltager_firma' => '17414', //Company ID

    'Deltager_nummer' => '17415' //Customer ID

    ];

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Using Web Service to Create Course registration attendancess.

    I guess you need also to create related header. Try this article: blogs.msdn.microsoft.com/.../handling-sales-orders-from-page-based-web-services-in-nav-2009sp1-and-rtm

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,253 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans