Streamlining Development with Web API CRUD and Custom Content Snippets
1K views
Jun 19, 2025
In this session, we will be giving a walkthrough on the Overview of Streamlining Development with Web API CRUD and Custom Content Snippets. TOPICS COVERED 1. CRUD Operations in Power Pages with WebAPI 2. Customize Content snippets in Power Pages šŗ CSharp TV - Dev Streaming Destination http://csharp.tv š C# Corner - Community of Software and Data Developers https://www.c-sharpcorner.com #CSharpTV #csharpcorner Transcript šļø New to streaming or looking to level up? Check out StreamYard and get $10 discount! š https://streamyard.com/pal/d/5348850450038784
View Video Transcript
0:00
hey Hey Hey [Music]
0:06
[Music]
0:14
[Music]
0:34
Hello everyone welcome again to another business MVP show So where we talk about
0:41
uh power platform and uh Microsoft firstparty apps uh which is you know
0:46
that we use on the customer engagement side and uh from last couple of sessions
0:54
we have been discussing about the power pages and uh we will continue on doing
0:59
that power pages So let's have a quick uh overview of the agenda that uh we'll
1:07
discuss today So we'll start with the basic introduction about the web API So
1:12
we covered web API in last session as well but in last session we just uh you know in the demo we only we saw that
1:20
creation of that uh you know using the web API request how we can create that report So today we are going to cover
1:27
more options there So we will do more set of operations like you know edit delete update So we will be discussing
1:34
that and how we can associate two reports If we have one entity report and we want to associate it with another
1:40
report what type of request we need to use So we will using this on that uh uh
1:46
you know discussion today and show you demo for the same and then we will also discuss the content snippet where we'll
1:52
see that what is the use of the content snippet how we can create reusable component with the help of this Okay So
1:59
before jumping into the main uh you know topics let's have a quick introduction about ourselves So myself Mahindra and I
2:06
have my friend Wenita with me We both are Microsoft uh as well as sharp corner
2:12
MPs and we have been more than 10 years of experience in Microsoft technologies Yeah So let's uh jump into
2:22
our main topic web API Okay So in the power pages
2:31
so we have been discussing lots of uh you know things about the power pages you know how to set up power pages
2:37
website how to create web pages how to use different controls that is part of
2:42
the power pages how to you know set up the security now we are on that of how
2:48
to use web API okay so by default when you create the web page it has that
2:56
capability let's say for example you By default we have option that we can use web page for creating that report We can
3:03
use web page for editing that report right and we can have the delete button there as well So those type of operation
3:11
that we can do using the power pages as well But when you use those one those
3:16
are kind of a submit operation right So when you let's say for example you are
3:22
creating one entity report using and you have a power page for that maybe let's take an example of a customer So you
3:29
have a one page for the customer you entered the data and then you have a submit button which will basically post
3:34
back the complete form and then it will create that report into database right
3:40
but sometime when we are on that same page we may need to do some kind of
3:46
other operations like or other entity operations So for example you are on the account you want to create report for
3:53
the second entity maybe contact or other entity Okay Or maybe you want to stay on
3:59
that page and from you know using the help of the custom button you want to click that custom button and you just
4:05
want to update some particular attribute or particular field of that uh you know page or of that entity Right so that
4:14
kind of thing can be done using the web API Using web API we can perform different set of operations We using the
4:21
JavaScript right so just like we use JavaScript for in our data versse or in
4:26
the first party app to you know interacting with the data vers to get the data create the data delete update
4:33
so those type of operations can be done also in the power pages using the web
4:38
API right so that's what we are going to uh discuss here that how we can use uh
4:46
these web API uh so normally when you are working with the web API So there
4:53
are predefined steps in a high level step that we discussed in our last session So you need to you know
4:59
first basically uh you need to uh there are some set of uh settings that you
5:05
need to enable depending on your entity that uh there is a configuration on that power pages sites settings there you
5:12
need to tell that okay for this particular entity I'm going to use web API okay so whether it's a account
5:20
contact or any custom entity so you need to define that setting that I will be using web API and then you need to tell
5:27
that okay which all the fields that you want to use Maybe you want to use all the fields or you just want to work with
5:34
one two fields Okay So those type of setting can be also done there And then
5:39
there are some other set of uh settings that is available as a part of you want to how you want to you know handle error
5:46
when you are working with web API and if you are getting some error how you want to see those errors So that kind of
5:52
thing we can also handle on the web API Maybe we will show you a quick uh screen on that uh as well where you can see
6:00
that settings right So once those settings are there we need to make sure
6:05
that the user the current user have a proper permissions they have a proper
6:10
web roles and under the web roles we have a proper table permissions defined there where we can see that okay this
6:17
user can create that report or not this user can update that record or not right
6:22
because web API can perform that operations but only when you have the
6:27
required set of permissions so if you have the required permissions then only it will be done right otherwise it will
6:35
give you error that you don't have that permissions so you need to make sure the current user who is going to perform
6:41
these set of operation or who is basically you know accessing your portal where you have used web API should have
6:48
a proper permissions you know given to that uh particular entity okay so once
6:54
you have that then we have a wrapper that we need to use to basically get the
7:00
token for the authentic case Okay So there are there is a basically predefined code block that is you know
7:06
we can get from uh Microsoft website So it has under the documentation So we can
7:12
use as it is the wrapper to get the token from the data Okay So once we have
7:18
the token and then after that we can write our individual you know requests
7:23
So for example create update and delete that we are going to discuss now
7:30
So the first thing that I want to discuss uh today is the update of this So for example if you want to
7:37
perform one entity and there is a let's say we have one attribute or you have a
7:43
multiple attributes So you want to update those set of inputs Okay So when we are saying particular attribute we
7:50
also call it like a property Okay So you want to update a single property or you want to update a multiple properties So
7:57
depending on that actually we have two options here The patch is basically used for the updating multiple properties So
8:04
if you have a multiple set of attribute that you want to update there we use the patch But if you just want to update a
8:12
single property you can also use put So there is a put method as well We can use
8:17
that So as you can see here in the right hand side this is a sample request that
8:23
is update one where I'm using the patch here So under this request basically we
8:30
required these three things First one name of that entity Okay Which entity
8:36
you want to update right so for example it's a account contact you know opportunity or custom event entity or
8:44
there is any custom entity that you have created you want to update that So you need to know the logical name of that
8:51
entity to perform this operation Right now second thing is that we need a
8:59
particular unique identifier which we can use to update that entity and normally we use the GUID of that entity
9:07
Right so for example every report that we have in the database have a particular report
9:13
id So we can use that GID to update that particular record And then we need the
9:20
third one that is basically the entity object where we will put those set of properties So we create a object under
9:27
that object how many properties we want to set We set four those property and then we pass here So you can see here
9:35
that we are saying that we have the you know type as patch and then under the URL we are defining that our name of
9:42
that entity and under the bracket here which is this is basically a simple one but here it will be actual go id of the
9:50
repo and then right now for example we are just setting the name property here
9:56
but similarly here under that uh we can set up multiple properties and that we
10:02
can pass and execute and when this will be executed that particular report name
10:08
will be changed to sample account updated Okay So this is how we can use
10:14
our uh set of operations on the using web API for the update
10:24
Right now delete operation So for example let's say if you have some set
10:30
of record of uh you know one table and you want to delete data from that So you
10:36
can use delete operation In the delete operation we need basically two things
10:42
One name of that entity from where you want to delete this record So whether it's a account contact or you know any
10:49
custom entity and then go ID of the particular record right because there
10:54
can be many records here So how it will identify that which report you know you want to delete So using the help of the
11:01
GUI id the unique identifier we can tell that this is the report that I want to
11:07
delete So you can see here that this is a sample request here web API request
11:13
where we are using that delete and then we have this you know account and then the go ID of the report which basically
11:21
we want to delete from the database right So these uh just like for example
11:28
let's say there could be different uh use cases where you can use this right
11:33
So if you have let's say for example you have a uh you know view that you are displaying on that and you want to make
11:39
a custom button and you want to apply some kind of validation before deleting that report So maybe you can write some
11:46
uh you know scripting there right that when you will select that row you will click that button after that you will do
11:54
some kind of validation and when this validation will be fulfilled only then you will delete that report So in that
12:01
case we can use this delete operation from the web API
12:10
Now we have association operation here that associate means like if there are
12:16
two set of entities and you want to relate those two set of entities here So
12:22
actually we have you know in we talk about the relationship So we update two
12:28
type of relationship let's say one to n or n to one and then there is a n to n
12:34
right So like 1 to n to n is basically we can use update as well like we can
12:41
use the patch command that will also do that association between two reports
12:46
right but this particular associate operation we use for the end to end
12:51
association So on the one entity we have one let's say for example we are saying
12:59
that you know we have event organizer okay that we are using that account entity for our event organizer and we
13:07
have different type of you know events that a organizer can manage right so
13:14
maybe we are building a portal for the event management so there if we have
13:20
some kind of you know page where we want to give them uh you know flexibility that okay I can show that okay this
13:26
event will be managed by this event organizer and this will be managed by this one So there we can use this
13:34
associate method and under that associate method we need to tell them that basically in a high level we can
13:41
say we have four things that we require to one basically that we need
13:48
the name of that entity like one entity and second entity right the logical name of both that entity and then GU ID of
13:56
both that reports that we want to associate So as you can see here on the sample one So this is the one that I'm
14:04
saying that let's say there is a primary contact one and this this is a contact report that here Okay And then this is
14:11
the account one which basically we want to use that associate So using this we
14:17
can bind both these the contact and account using that
14:23
associate Okay So as you said things like this is also the same here we can
14:30
use post uh this is uh we actually use here post Okay So this is uh I believe this
14:38
is the one but we can use similar to that path we can just write here the post one and which help us to do the
14:45
association between two reports right Okay
14:53
Now so now now we know that uh we saw that okay these are the different web
14:59
API operations and we will show you that on the demo more on that that how we can make that request how we can do that
15:05
settings those type of things are there now the another thing that we want to cover today is the content snippet that
15:13
these are basically the reusable component okay so when I'm saying reusable component means let's say when
15:21
you building a power page website and you can have multiple pages there right
15:26
let's take an example that there is a specific information that you want to display on every page
15:34
Okay or there is a specific information that is common to two or three pages
15:40
right not let's say not on all pages maybe but two or three pages right so
15:45
you can create content snippet in one place and that you can refer on those
15:50
multiple pages Okay So let's take an example that we we have some kind of
15:57
maybe uh you know when we are browsing some website you will see that under you
16:02
know footer we have normally that information that about that company about themsel you know and when that
16:09
basically update was done last to that website So those type of thing that is required on the footer right So we can
16:17
create that component using content snippet and we can provide that under the footer template that okay this will
16:25
be the uh component that I want to display on the footer Right So it can be
16:32
basically this uh reusable component can be a simple text or we can create a HTML
16:39
uh you know we can define HTML tags and we can do that you know kind of formatting using that HTML So depending
16:46
on that requirement we can do it So these are the when we want to create
16:52
content snippets these are the three you know three four things that we need to configure For example name So what name
16:59
you want to give them you know maybe you want to you have multiple content snippets for your website So you want to
17:05
give them a unique name and website So while building that you know uh this
17:13
content snippet it can be that you have multiple website onto your tenant right
17:19
maybe you have a dev website you have a test website okay or maybe you have
17:25
website for a different different requirements So maybe you have a uh one for the event management and one for the
17:32
customer service So you need to tell that okay for which website you are
17:37
going to use this content snippet and then we can have this you know display name and then type of that that it will
17:44
be a simple you know text or HTML thing or which language you are going to use
17:49
for that So because we can have multiple languages that is part of the you know power pages So it is basically
17:55
multilingual uh you know application it support multiple languages So you can define here and then under that value
18:03
based on the type we define okay this will be the text or this will be the HTML content that we are going to use
18:14
here So this is that example here So for example you can see that here I have
18:22
like footer content snippet that I want to create and I'm just writing a simple text here that app demo portal So I just
18:30
want to make display that under the portal into my power pages right So I
18:36
can simply create this and I can define that okay this will be about footer and then the website that I'm using and then
18:43
again the same display name and I'm saying that I'm using the HTML and you can see here we have two things here one
18:50
is designer that where we can write and we can use these rich text uh controls
18:56
So we can you know do that uh basically for look and feel and we can create uh
19:01
just like it's a rich text editor So you can use different controls to format
19:06
your text or if you want to write your own HTML you can select this
19:13
HTML tag and under that you can write your HTML tag depending on that your
19:18
requirement the paragraph or the you know simp different different uh type of bullet points those kind of thing we can
19:26
do on this HTML tag Okay So once that is done after that we can reference this on
19:35
the pages or on the template So we we can refer them on basically pages We can
19:42
go ahead and just put that that okay this is the content snippet that I'm going to use on this particular page or
19:50
let's take an example that we have a template the web template that we covered in our earlier session that we
19:56
can create uh the reusable code component with the help of web template as well So you can see that we have a
20:06
this footer web template created and you can see that here we are using that
20:11
editable snippet footer This is the name of the snippet and we are using editable
20:19
When you will use the editable keyword it will allow you to edit this on that
20:25
you know your designer So you can go ahead and you can do that on the fly If you want to change that you can modify
20:32
this So it allow you this flexibility that you can do your changes there as well
20:38
Okay So apart from that we can also use it like this So for example you can say
20:43
snippet and then name of the snippet and dot value Then it will replace that
20:49
whatever uh you know value you have provided under that uh you know content
20:54
snippet window that will come and it will render on your page So when when
21:00
you will see that on the runtime So when you will browse your uh power page uh
21:06
web page so there you can see this content snipper will be rendered
21:13
there Okay So now let's see the demo for all these web API request and how we can
21:20
use content snippet on the pages So I will pass Mike to my friend blanket and
21:25
he will show you demo for the same Wanket over to
21:34
you Thanks for the wonderful introduction about today's session So
21:41
hope you can see my screen right uh
21:47
okay Yeah you can see it now Yeah Okay So like uh just first I will give
21:55
you the sample thing What is that I have done so I will be performing the some
22:01
kind of CR operations here So just first is this I will be adding some s sample
22:07
record which is this one Okay And I'll be performing some updates of
22:14
this details
22:19
like you observe this first name has been changed the same way
22:27
here been changed and I can delete also
22:33
the details Okay So these are the CRUD operations that I'm going to perform and
22:40
if you observe I have not written uh I have used these details to extract it
22:47
from uh my uh content snippet which is that has been going to look Okay So the
22:54
first thing is uh add sample record So in if you have not seen our previous
23:00
session on last month you can go and see it in the C# uh TV like uh where we have
23:06
explained you about the web API and how you can create an record by using the web API Okay Now in this particular
23:14
session I'm going to uh show you about how what is the code that has to be written as a part of performing the
23:21
delete and uh the operations Okay So as
23:26
you as I mentioned here um so I'll go through this particular
23:32
one like as uh mentioned So by default you will perform this particular page
23:38
and then go here and you can uh start on this uh start from blank and you can
23:45
give the name whichever that is required So just for this demo just I have given
23:50
as a credit operations Okay And this is nothing a page inside this particular web page you can uh easily uh
23:59
uh go to this particular one If at all you you go for this one you if you click
24:04
on this particular edit code then you will go be going into the visual studio code that is uh present in the online
24:12
Okay So there if you observe this is the CR operations in this CR operation this
24:17
HTML page that has been uh present Okay
24:23
So for adding the sample record right just uh I have framed this particular
24:28
record So let me zoom in for better [Music]
24:39
[Music] Okay for adding sample record just what is that I have done is uh just
24:47
uh I have framed this particular record object and then I
24:55
have adding these details type is the post URL is the API context where the
25:01
content type is the application JSON and data which I'm going to be JSON stringify of the record object So if I
25:08
do this particular one then you will get this uh function uh so you could only
25:14
get the success then I'm just uh capturing the entity ID of as a record
25:20
id that means for the sample ID that sample record which I have just created that is a contact that will get that ID
25:27
and the full name is also present and just I am using one particular HTML table so that that table will be added
25:34
as a record object so in short so this is what the table that is being present
25:40
in this particular HTML table if I'm clicking on add sample record then what I'm doing I'm framing this uh with the
25:48
uh details last name everything and all as an object and then I'm framing the
25:54
payload and after in that particular payload these are the standard things post URL the content type and the data
26:02
JSON stringify record object and this is the successes so this is how you will be
26:07
going to work on this particular ad sample record and of course this ad sample record is been
26:15
uh called from one particular uh handler that is the add handler that is add
26:21
sample record So if you go back to this one this is the table which I have
26:27
created that means this one So whatever the headers that I'm saying it if you observe this is a normal table in this
26:34
table just I have framed my headers but the first name last name and the telephone So this is what the
26:42
columns handler is the update record So if you observe these are nothing but
26:47
when I click on individual row item okay in the column then I'm getting right
26:53
these are nothing but my update record handlers and also in the data just I'll
27:00
have this add sample record and the delete record which are nothing but this add sample record which is I'm going to
27:06
add which I have added at the header and also there this is delete button which will come for the record that is already
27:14
uh present Yeah So now so just when I am load records load
27:21
records is nothing but which I uh will be just looping through
27:27
here which is nothing but I'm just using the get record and then I'm using the
27:32
APA context and specifically I in order to reduce
27:40
uh the mode churnness and in order to increase the performance just I have selected whatever the fields that are
27:47
required full name first and last name email address one and the telephone name and then the content type So after this
27:53
one just app ajax is the one which I have used it So if you go back and see what is the appjax is
28:01
showing it is nothing but the uh web API cpax we'll be using it and then uh doing
28:07
this normal response API stuff so that I can easily use it
28:13
uh for performing the particular records This is how the sample record is been
28:19
added Now when coming to this delete record So on click on this particular
28:26
delete record Are you sure you want to delete billing FJS i am saying it as
28:31
okay So delete uh popup has came So which has deleted my uh record and then
28:38
the record is got uh uh refreshed and the grid also got
28:44
refreshed How it is happening was this is the delete record which I'm saying it this is the confirmation message that
28:51
you are giving it Okay And then if the response is true then the Ajax just I'm
28:57
performing the type as delete and in APA context simply I'm getting that record
29:02
object whatever that is being selected that record id and then just I'm using
29:08
this uh content So if at all success then the record got uh removed from the
29:17
data table from the data and then just I am uh referring to this remote record
29:23
which it will say right just okay I have that particular record ID which has been
29:28
selected right just I'm from the UI perspective [Music]
29:37
okay this is how you can perform this particular uh delete handler and now
29:43
when coming to this update handler So let us go back to here and
29:49
say
29:57
[Music] that you see this this luxman has been
30:02
updated So what is the logic here is whenever if I select this particular row
30:08
if uh you remember at the starting like when we are defining this particular
30:22
table let me go back to here add sample
30:34
Okay So on one on every particular column just I have added one particular
30:39
handler So this particular handler will be uh called if at all I click on any
30:45
particular item
30:59
So it got updated So what was happening is just on that particular column as I
31:04
have this update record attribute as an handler So handler is nothing but you can consider as an uh um method Okay So
31:13
what is this particular method will accept is the column and also the record object And this particular record object
31:19
what you will be going is you can simply go to this particular contacts and then just update here So you can perform the
31:26
patch also or you can also perform the put also you can take it
31:32
Okay Now once you get this one then the data I will get it as in this value and
31:37
I what I'm going to do it is in this particular table simply I'm going to that particular record object and then
31:44
replacing the old value with the new value with the attribute name which I have got it from here So that means here
31:51
if I am selecting it the what is attribute name is logically is the email So I'll take that particular email and
31:58
then replace it uh with my uh new value which I have placed
32:04
[Music] in Now let us go to this uh
32:11
delete So what is that I'm going to in this uh table whatever the data that I
32:16
got it simply I have built it uh with one particular class and then which has
32:21
this particular delete functionality So on this delete I have this delete button
32:28
is present which is rot finder button and I'll click on this one just I
32:33
clicking on that particular one So I'll be seeing I have this delete handler So
32:38
in this delete handler [Music]
32:54
So yeah and this delete particular one which I have just g it right So if at
33:00
all I am going to try to delete it just I will get the response do object name Whenever I click on that one I will also
33:07
get my response object This report object will have that particular uh ID
33:12
as well So what I'm doing it is just I'm going to this API contacts which is the my web API where I have to explicitly uh
33:21
enable all my uh settings that are present by enabling this particular
33:26
rules and also I have added that uh details of the
33:32
star details and also the type is delete and then application recent So if at all anybody has uh
33:40
uh not uh gone through the previous ones right just you can go for this uh
33:46
settings and then this is my power power app power
33:52
pages management one So here you can perform this particular uh table permissions So what is the table
33:59
permission so just I have created one particular one contact and in this particular contact uh just I have
34:06
provided uh so this contact create permission So if you click on this particular edit this I have given all
34:13
the permissions of create append and delete and append to also in the same
34:18
way uh for the content snip content
34:30
snippets Okay now I have given other roles also
34:36
present So for my access uh table permission it is for uh the create uh
34:42
contact create permission and the contact table permission If you observe right you you have these uh particular
34:49
ones that are uh present here If you observe the web roles admins and authenticated users only can perform uh
34:57
these uh related uh uh details
35:09
And as I have one particular website in this particular website only I have my
35:14
uh details that are present in this particular site settings So what we have to do it is uh we have to go to the site
35:22
settings and then just search for
35:35
contact if you observe right we have to enable web pay contact enabled as true
35:41
and also web pay contact fields as star okay if you don't wanted to specify this
35:46
star you can specify ally mention the particular columns Okay But in order to
35:52
perform this eBay definitely these two uh these two settings uh should be uh
35:58
switched on Okay Now the next part of it So this is how right you can easily
36:04
perform the current and current operations like uh the creation updation
36:10
deletion also So on the top of it right just uh what is the thing that I have given just I
36:17
have uh created some process message okay and also the table
36:27
styles Okay So just uh if I in this part particular function just
36:35
I have given the token generation one Okay Because the token uh generation
36:40
that is web API jax wrapper is a mandatory thing that should be present in that should be present or that that
36:48
we have to kept it in every web API uh page web template Okay Otherwise if we
36:56
don't if we don't keep it then we will not get the details So in the same way
37:02
right you can also perform uh the lookup lookup updates also Example you have an
37:08
account in that partic if you have an contact in that if you have an account lookup you can also permit the account
37:14
by taking the uh the lookup ID of that particular one Now
37:20
next comes to the next part of it is how we are going
37:26
to how we can rise uh use this particular snippet
37:31
Okay So let us go back to this uh total uh power page
37:37
management and then just see it here how you can create a content snippet is you
37:42
can click on this new and you can perform here the details and you can provide the contact
37:48
[Music]
37:58
details and build this That's English
38:32
actually you have to give like this [Music]
38:40
uh okay so in this uh sample snippet if you observe there are two ways of doing
38:48
these are the two types are there one is the And uh another one is the HTML Okay So
38:54
if you are if you open this particular HTML right So if you open uh okay if you
39:00
use that particular type as HTML then in that particular case uh you can give the
39:06
HTML all kind of HTML context that you can easily uh get that one So if you
39:12
wanted to edit just you can click on that open the visual studio and
39:20
[Music] then like this uh I can uh get that uh
39:27
particular uh details Now uh I'll go to this uh
39:34
particular page In this particular page what is that I will be doing it is we
39:41
have to use this particular uh snippet and then we have to specify what
39:51
is that particular uh snippet that we have
39:57
used So say that this is a sample snippet
40:03
close this and go back to here and we will just save
40:10
it Okay So if I do this one
40:19
then clear the
40:32
cash and go back to here and click on the credit operations
40:39
If you observe this is a sample This is the one which I have kept Okay This is a
40:44
normal text Now if you wanted to uh keep some kind of dynamic value where in the
40:52
data was table if we have some data and if you wanted to show this on the top of
40:58
it right then what we can do it is let us go back to the s the sample snippet
41:07
[Music] Okay So if you observe
41:15
right so let me zoom in So what I'm doing is uh as I'm
41:21
assigning a contact in this particular contact see if you observe I using the
41:26
liquid syntax here inside my HTML uh HTML content So I'm assigning contact
41:34
What is that i'm assigning I'm assigning the entities contact of this particular JUID How I will get this particular JID
41:41
is okay you can take any of these particular one and then give this particular JD So take this particular
41:52
JID and then give it here Now if I have the contact then just I am what I'm
41:59
doing it is just I am making this contact first name and I am extracting
42:05
the property from the contact and next is the email address one just I if at
42:10
all the contact have the details then only I am printing it Now just I am saving it
42:18
So after save what I'm going to do it is just
42:29
uh so I'm going to back to here just I have included just included
42:37
include simp what is the simp name is a contact data just save
42:42
[Music] this so once you save then go back to
42:48
here and keep on [Music]
43:00
syncing Now just observe the sample will change it with the details
43:20
I think [Music]
43:41
so Go back to
43:52
Something's happening
44:16
Open this paper
44:51
St Right now I click on this one
44:58
We observe the contact person first name is Shiva and the contact name is 61 So this is what I have got received So in
45:06
this way right uh mostly as Mahindra
45:11
mentioned we use this particular content snippets as a footer If you observe right look at this particular footer
45:17
This footer has some HTML content like the copyright everything You observe
45:22
back to here whatever this one that you are seeing it is This is nothing but one
45:27
particular content The same way if you go back and see any particular
45:36
header Okay This search to tip This is search These are also being uh used here
45:44
as an content snippet So whatever the text that you are seeing here these are all mostly will be configured as an uh
45:51
content snippet So in this way one can easily use uh uh the cred one can
45:58
perform any kind of operations on liquid template in power pages by using any web
46:04
API and also the content snippets So over to you
46:13
uh thank you blanket uh showing this demo on that uh web API request and how
46:19
to use index snippet So one thing I just want to add here that this this uh when
46:25
we are working on that development environment this is a really big issue
46:30
when you are doing some changes and you know even after syncing as well sometime you need to clear the cing So please
46:38
make sure that this clear case is only available when you have a admin web Okay
46:44
So you want to make sure that the user have the admin web role only then you will get this clear cay option that
46:51
there is a particular URL that you know you might have you know seen on that So when you will go through that URL then
46:59
you'll get that option to clear the cay and then it will get you know reload that all the changes and it will fetch
47:05
recent changes from there So this uh you know you need to keep in mind when you are working you know on the development
47:11
of the power pages So yeah so that's what we wanted to cover on that in
47:18
today's session So we covered web API pending set of operations how we can use
47:23
them So just like wet you know so case that you can create a uh you know web page and there you can give it just like
47:30
real you know if you are creating a uh custom website using the any front end
47:37
uh you know uh technology and it will give you just like similar to that uh kind of feeling you can use the using a
47:44
web API you can have your custom buttons and you can do some set of operations using these right and you can also use
47:52
this content snippet as a reusable component depending on that your requirement you can put on the page body
47:58
or you can you know include on the header on the footer So depending on that you can make you know many uses of
48:06
this content Yeah So that's what we wanted to cover like we will be back
48:11
with another episode We will discussing some more uh you know details maybe from
48:17
the power pages or we will take some new topic Thank you for joining us Stay tuned for our next session and all our
48:24
old sessions are available on C# TV So you watch there share with your friends
48:29
and give your uh you know feedback if you have any feedback on that Thank you very much for joining us today
48:36
Thanks everybody [Music]